LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-14-2004, 05:31 AM   #1
muxman
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 198

Rep: Reputation: 30
poptop and routing to the LAN


I have poptop running, I can connect to the vpn remotely and get an ip address. On the connecting machine I can ping the address of the pptp server on the LAN of the remote network I'm vpn'd into. I cannot however contact any other machines on that remote network. I'm connecting in to gain access to the LAN on that remote network but only the address on eth0 on the server that is running poptop is responding.

How to I get the vpn server to forward my traffic to the rest of the LAN on it's side?

Are there any easier or better pptp servers to run besides poptop? This is the only one I know of right now and I"m wondering what other there are.

Thanks.
 
Old 10-14-2004, 08:56 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,806

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
From
http://pptpclient.sourceforge.net/routing.phtml

iptables -A INPUT -s 192.168.10.0/24 -d 0.0.0.0/0.0.0.0 -j ACCEPT -i (internal interface)

iptables -A FORWARD s 0.0.0.0/0.0.0.0 -d192.168.10.0/24
-j ACCEPT -o (external interface)

iptables -A FORWARD -s 192.168.10.0/24 -d 0.0.0.0/0.0.0.0
-j ACCEPT

iptables --table nat --append POSTROUTING \
--out-interface ${IFNAME} --jump MASQUERADE
 
Old 10-14-2004, 11:44 AM   #3
muxman
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 198

Original Poster
Rep: Reputation: 30
I'm not running iptables on the vpn machine. I take it I have to in order for the traffic to forward correctly? Is that the only way for it to work is by forwarding that way? No big deal if it is but I'd like not to have more running than needs to be if possible.

Thanks.
 
Old 10-14-2004, 01:11 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,806

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Sorry, I don't know of any other way at the moment.
 
Old 10-14-2004, 05:11 PM   #5
bastard23
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 275

Rep: Reputation: 30
If the client's IP address is in the same network as the server's lan, you need to make sure you have proxy_arp on in the ppp options file. (Debian has /etc/ppp/pptpd-options).

You also need ip_forward on (echo 1 >/proc/sys/net/ipv4/ip_forward).

If the VPN clients addresses are in a different network, then you need to setup routing.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
basic LAN routing captain_b Linux - Networking 1 11-18-2005 10:46 AM
PoPToP VPN with Shorewall: can only reach PoPToP server pgwillemsen Linux - Networking 0 12-27-2004 07:11 AM
Routing issue with VPN Client into PPP/Poptop loopy69 Linux - Networking 1 10-07-2004 08:48 AM
Routing LAN -> WAN -> LAN with unhelpful router synx13 Linux - Networking 2 06-14-2004 02:35 PM
linux routing on lan bruj3w Linux - Networking 8 03-11-2004 01:21 PM


All times are GMT -5. The time now is 10:49 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration