Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VPN routing troubles
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
bumpus
n00b
n00b


Joined: 14 Feb 2003
Posts: 64
Location: Cedar Rapids, IA, USA

PostPosted: Fri Apr 25, 2003 2:04 pm    Post subject: VPN routing troubles Reply with quote

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
View user's profile Send private message
skwelch
n00b
n00b


Joined: 13 Dec 2002
Posts: 38
Location: NJ, USA

PostPosted: Sat Apr 26, 2003 3:15 am    Post subject: Reply with 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.
Back to top
View user's profile Send private message
bumpus
n00b
n00b


Joined: 14 Feb 2003
Posts: 64
Location: Cedar Rapids, IA, USA

PostPosted: Mon Apr 28, 2003 2:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Crg
Guru
Guru


Joined: 29 May 2002
Posts: 345
Location: London

PostPosted: Mon Apr 28, 2003 3:35 pm    Post subject: Re: VPN routing troubles Reply with quote

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
View user's profile Send private message
bumpus
n00b
n00b


Joined: 14 Feb 2003
Posts: 64
Location: Cedar Rapids, IA, USA

PostPosted: Tue Apr 29, 2003 6:48 pm    Post subject: Re: VPN routing troubles Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum