cypr3ss
June 8th, 2008, 11:47 PM
Hello All,
Apologies for the large post, but hoping someone can help with me with this, as I'm stuck. I have a box running 8.04 with 2 nics (eth0 and eth1) which will be a firewall/router for a remote site. When connected via ADSL I can get a PPTP VPN connection (ppp0) to the main site, and can reach all the hosts on this network (from the server/firewall). I'd like all the machines connected to the server/firewall on eth1 (via a switch) to be able to access all the network hosts on the remote network.
eth0 Link encap:Ethernet HWaddr 00:0d:60:4a:c1:02
inet addr:10.0.0.2 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
eth1 Link encap:Ethernet HWaddr 00:05:1c:16:e5:12
inet addr:10.70.5.62 Bcast:10.70.5.63 Mask:255.255.255.192
inet6 addr: fe80::205:1cff:fe16:e512/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
ppp0 Link encap:Point-to-Point Protocol
inet addr:192.168.58.207 P-t-P:192.168.58.206 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1412 Metric:1
From a host on the internal network (10.70.5.x) I can ping 192.168.58.207 but nothing else.
To make sure I've got no issues with the firewall blocking things, my iptables setup is:
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
I have also set: net.ipv4.ip_forward=1 in /etc/sysctl.conf
As far as I can tell I need to NAT anything that goes out the ppp0 interface (so all traffic appears to the remote network as originating from 192.168.58.207) and will make it's way back... does this sound right?
Any and all help greatly appreciated.
Regards,
Cypr3ss.
Apologies for the large post, but hoping someone can help with me with this, as I'm stuck. I have a box running 8.04 with 2 nics (eth0 and eth1) which will be a firewall/router for a remote site. When connected via ADSL I can get a PPTP VPN connection (ppp0) to the main site, and can reach all the hosts on this network (from the server/firewall). I'd like all the machines connected to the server/firewall on eth1 (via a switch) to be able to access all the network hosts on the remote network.
eth0 Link encap:Ethernet HWaddr 00:0d:60:4a:c1:02
inet addr:10.0.0.2 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
eth1 Link encap:Ethernet HWaddr 00:05:1c:16:e5:12
inet addr:10.70.5.62 Bcast:10.70.5.63 Mask:255.255.255.192
inet6 addr: fe80::205:1cff:fe16:e512/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
ppp0 Link encap:Point-to-Point Protocol
inet addr:192.168.58.207 P-t-P:192.168.58.206 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1412 Metric:1
From a host on the internal network (10.70.5.x) I can ping 192.168.58.207 but nothing else.
To make sure I've got no issues with the firewall blocking things, my iptables setup is:
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
I have also set: net.ipv4.ip_forward=1 in /etc/sysctl.conf
As far as I can tell I need to NAT anything that goes out the ppp0 interface (so all traffic appears to the remote network as originating from 192.168.58.207) and will make it's way back... does this sound right?
Any and all help greatly appreciated.
Regards,
Cypr3ss.