Setting up a VPN that utilizes multiple public IPs
(edit: problem resolved!)
Alright guys, just a warning: I'm very new to this stuff. I have already setup a VPN (and use it just as a proxy, pretty much) using pptpd on a VPS that I purchased. After some tinkering around, I was able to get it to work. However, my VPS actually has two public IPs. The etc/network/interfaces has eth0 and eth0:0. I'm currently only able to log in and use a single IP, the one that is specified under eth0. Here are my settings. I might be providing more info than is needed, I'm quite new to this. /etc/network/interfaces: Code:
auto eth0 Code:
# Secrets for authentication using CHAP Code:
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE If I try to add an iptables rule and specify eth0:0 instead of eth0, that won't work because apparently iptables does not understand aliases. Any help is appreciated. Thanks! edit: Assigning IPs to each user (rather than using *) under chap-secrets, and then using that ip as the source in the iptables postfoward in conjunction with -j SNAT --to-source seemed to work. Nevermind! |
Quote:
If it's solved, could you please use the Thread tools to mark thread as Solved (please read my signature if you want to know how). |
All times are GMT -5. The time now is 04:58 AM. |