| Linode Forum https://forum.linode.com/ |
|
| OpenVPN and 2 Public IP Addresses https://forum.linode.com/viewtopic.php?f=19&t=8229 |
Page 1 of 1 |
| Author: | iWizardPro [ Wed Dec 28, 2011 12:12 am ] |
| Post subject: | OpenVPN and 2 Public IP Addresses |
Hello, I just added a new IP address to my Linode and I am having some difficulties with setting which connection my OpenVPN server should forward network traffic through. Initially all my traffic was directed through 96.126.100.xxx, but upon adding another IP (50.116.1.xxx), all my traffic began going through that one instead. How do I go about specifying that my connections should go through 96.126.100.xxx? My configuration for my network is as follows: /etc/network/interfaces: Code: # This file describes the network interfaces available on your system /etc/rc.local: Code: iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT Signed, Ryan Tse |
|
| Author: | hoopycat [ Wed Dec 28, 2011 12:25 am ] |
| Post subject: | |
With IPv6 addresses, my usual approach is to add 'preferred_lft 0'. I can't recall if this works for IPv4, but if it does: Code: auto eth0 ... then omit the auto eth0:0 and iface eth0:0 stuff entirely. Alternatively, leave the "gateway" off of the eth0:0 stanza. All other things being equal, the kernel will pick the most recently added default route, and that would be the last one... |
|
| Author: | iWizardPro [ Wed Dec 28, 2011 12:47 am ] |
| Post subject: | |
I tried the way you specified "up /sbin/ip ..." and that didn't work. But, removing the gateway from the eth0:0 stanza worked. Thanks for your help! |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|