View previous topic :: View next topic |
Author |
Message |
bumpus n00b
Joined: 14 Feb 2003 Posts: 64 Location: Cedar Rapids, IA, USA
|
Posted: Fri Apr 25, 2003 2:04 pm Post subject: VPN routing troubles |
|
|
Code: |
------- --------- ----------
| work | | NAT | | PoPToP |
| PC |-INTERNET-| Router |---|---| Server |
-------- ---------- | ----------
| ---------
|--| Other |
| Host |
---------
|
I'm having a bit of trouble getting routing to work properly in the setup above. My work PC is a windows machine and I want to give it access to resources on my private network at home (mp3 samba shares etc.).
I've gotten it setup so that I can successfully establish a VPN tunnel from my work PC to my Gentoo PoPToP server. I am able to ping the server from my work PC and use any services provided by that box (samba, apache, etc.), but I am not able to ping Other Host.
After poking around with tcpdump and such it appears that none of the packets are getting forwarded from ppp0 to eth0 on the server. Is there some sort of iptable trickery that I need to use to make this happen? Shouldn't pppd just do this for me or is there some setting I need to make that work? _________________ -------------
Just because I can. |
|
Back to top |
|
|
skwelch n00b
Joined: 13 Dec 2002 Posts: 38 Location: NJ, USA
|
Posted: Sat Apr 26, 2003 3:15 am Post subject: |
|
|
Real simple, on the windows side, somewhere under the vpn connection properties, there is an advanced button, and somewhere under there, a "use default gateway on remote host" checkbox or something very similar. Just uncheck it. |
|
Back to top |
|
|
bumpus n00b
Joined: 14 Feb 2003 Posts: 64 Location: Cedar Rapids, IA, USA
|
Posted: Mon Apr 28, 2003 2:33 pm Post subject: |
|
|
Quote: | Real simple, on the windows side, somewhere under the vpn connection properties, there is an advanced button, and somewhere under there, a "use default gateway on remote host" checkbox or something very similar. Just uncheck it. |
I've done that and configurged a static route on my work machine that sends all traffic intended for my home network through the PPP tunnel. The problem seems to be that packets are not sent out onto the ethernet after they are received by pppd. _________________ -------------
Just because I can. |
|
Back to top |
|
|
Crg Guru
Joined: 29 May 2002 Posts: 345 Location: London
|
Posted: Mon Apr 28, 2003 3:35 pm Post subject: Re: VPN routing troubles |
|
|
bumpus wrote: |
I've gotten it setup so that I can successfully establish a VPN tunnel from my work PC to my Gentoo PoPToP server. I am able to ping the server from my work PC and use any services provided by that box (samba, apache, etc.), but I am not able to ping Other Host.
|
Is forwarding enabled on your gentoo PoPToP server? |
|
Back to top |
|
|
bumpus n00b
Joined: 14 Feb 2003 Posts: 64 Location: Cedar Rapids, IA, USA
|
Posted: Tue Apr 29, 2003 6:48 pm Post subject: Re: VPN routing troubles |
|
|
Crg wrote: |
Is forwarding enabled on your gentoo PoPToP server? |
Nope, running
Code: | echo 1 > /proc/sys/net/ipv4/ip_forward
|
fixed the problem. Thanks. _________________ -------------
Just because I can. |
|
Back to top |
|
|
|