LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-10-2015, 11:47 AM   #1
kimmyp
LQ Newbie
 
Registered: May 2015
Posts: 1

Rep: Reputation: Disabled
Passing VPN Traffic to another interface.


Hi Guys

I have a PPTP Server setup,I followed the instruction here https://help.ubuntu.com/community/PPTPServer
I have 2 NICs on this machine, on eth0 I am connected to my WAN side which allows for the
PPTP clients to dial in.The other interface connects to a switch of an internal network.

I followed the instruction here to have traffic routed between my 2 interfaces http://ubuntuforums.org/showthread.php?t=1905048

My problem is that the VPN clients when connected are not able to access any of the machines on the internal network,connected on eth1.

Please let me know how to achieve this please.



From VPN client



Code:
 Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 ppp0
    10.0.3.0        0.0.0.0         255.255.255.0   U     9      0        0 wlan0
    192.168.0.189   0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
From Server

Code:
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    192.168.0.190   0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
    192.168.5.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
    192.168.99.0    192.168.5.9     255.255.255.0   UG    0      0        0 eth1
    192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
    0.0.0.0         192.168.0.200   0.0.0.0         UG    100    0        0 eth0
It is almost as if the packet does not know how to come back to the client.

Please assist me


Thanks
DD
 
Old 05-10-2015, 11:32 PM   #2
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
Ok... no experience with PPTP but let's try.

On the server, what is the output of these commands?

Code:
ip link show
ip addr show
ip route show
iptables -L -nv
iptables -t nat -L -nv
sysctl net.ipv4.ip_forward
then, on one gnu/linux client, both before and after connecting to the server, what is the output of these commands:

Code:
ip link show
ip addr show
ip route show
 
Old 05-11-2015, 03:12 PM   #3
lsalab
LQ Newbie
 
Registered: Jan 2009
Posts: 24

Rep: Reputation: 3
I had a similar issue once and it turned out to be a missing route in the client configuration.

Maybe you server configuration is OK, but you need to add a route in your pptp clients to reach your LAN through the VPN.
 
  


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
Force all internet traffic through tun0 (Vpn Interface) dschuett Linux - Security 3 08-10-2011 08:36 AM
Force all internet traffic through tun0 (Vpn Interface) dschuett Linux - Security 2 08-10-2011 12:24 AM
passing internet traffic through a vpn granduke Linux - Networking 1 10-03-2008 02:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:43 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration