Handing out Public IPs
Evan LeStrange <[email protected]>
| Newsgroups | gmane.network.poptop |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I'm trying to hand out public IPs to the clients but somehow I cannot get it
to work (I'm new to networking in general).
Running ifconfig on the server results in the following:
eth0 Link encap:Ethernet HWaddr 40:40:46:ff:6e:2d
inet addr:x73.x03.119.137 Bcast:x173.x03.119.255
Mask:255.255.255.0
inet6 addr: fe80::4240:46ff:feff:6e2d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1558864 errors:0 dropped:0 overruns:0 frame:0
TX packets:1203789 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:925299168 (882.4 MiB) TX bytes:893886411 (852.4 MiB)
eth0:1 Link encap:Ethernet HWaddr 40:40:46:ff:6e:2d
inet addr:x73.x03.119.166 Bcast:x173.x03.119.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
eth0:2 Link encap:Ethernet HWaddr 40:40:46:ff:6e:2d
inet addr:x73.x03.119.167 Bcast:x173.x03.119.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
eth0:3 Link encap:Ethernet HWaddr 40:40:46:ff:6e:2d
inet addr:x73.x03.119.169 Bcast:x173.x03.119.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
eth1 Link encap:Ethernet HWaddr 40:40:9c:ee:87:51
inet addr:10.179.55.200 Bcast:10.179.63.255 Mask:255.255.224.0
inet6 addr: fe80::4240:9cff:feee:8751/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:230 (230.0 B) TX bytes:510 (510.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
I'm using the default pptp-config with:
localip x73.x03.119.137
remoteip x73.x03.119.166-167
at the end.
I tried the following iptables rules:
iptables -A INPUT -i eth0 -p tcp --dport 1723 -j ACCEPT;
iptables -A INPUT -i eth0 -p gre -j ACCEPT;
iptables -A FORWARD -i ppp+ -o eth0 -j ACCEPT;
iptables -A FORWARD -i eth0 -o ppp+ -j ACCEPT;
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE;
I also enabled forwarding.
I manage to connect to the server, but that's about it. I cannot do anything
else (I can ping the server though). My end goal is to allow clients to
connect to the server (which hands out public IPs) and allow them to connect
to the internet. Anybody else had the same problem? Any help is highly
appreciated!
Evan
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Poptop-server mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/poptop-server