Results 1 to 10 of 25
Hello,
I've a dedicated server on LA, and I want to connect to this server via VPN ( poptop server ) to keep my static ip when I'm on trip ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 12-06-2007 #1Just Joined!
- Join Date
- Sep 2007
- Posts
- 16
4 ip and nat problem
Hello,
I've a dedicated server on LA, and I want to connect to this server via VPN ( poptop server ) to keep my static ip when I'm on trip and to keep my wireless packets safe.
but my dedicated server has 4 ips ( one on eth0 and others virtually on eth0:0 eth0:1 eth0:2 ), I want to connect to vpn with each one when I need to one of theme.
so the problem is this iptables rule:
iptables --table nat --append POSTROUTING \
--out-interface eth0 --jump MASQUERADE
this rule will forward all of my packets ( independent of which ip I've connected to ) from eth0, so in websites my ip always is the ip of eth0 but I need to some times it be eth0:0 's ip and so on....
I need better iptables rules...
tnx
- 12-06-2007 #2
Question 1: If these ip addresses are public why are you using MASQ?
Question 2: If these are private addresses using one public address how do you expect ot connect to them without using different ports?
Question 3: How do you figure you are going to keep your Static ip whaen you are away?
- 12-06-2007 #3Just Joined!
- Join Date
- Sep 2007
- Posts
- 16
- 12-06-2007 #4
- 12-06-2007 #5
- 12-06-2007 #6
Sorry, missed that. Wife talking in my other ear.

OK, you should not be using MASQ then if the ip addresses are public.
- 12-06-2007 #7Just Joined!
- Join Date
- Sep 2007
- Posts
- 16
- 12-07-2007 #8
Either post what you already have or send them to me in a private message. I cannot begin to tell you what to change without knowing your setup.
Also let me know how everything is connected as this will be needed to ensure the firewall rules are setup properly.
- 12-07-2007 #9Just Joined!
- Join Date
- Sep 2007
- Posts
- 16
- 12-07-2007 #10
he wants you to post your current iptables rules so he can look at them


Reply With Quote


