CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 6 - Networking Support
  PPTP Server Not Routing Internet

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  sombra84
      sombra84
PPTP Server Not Routing Internet
#1
Newbie
Joined: 2012/1/30
From
Posts: 6
Hello Everyone,

I have set up multiple PPTP servers on Cent OS 5 and no problem, when I apply a similar procedure on a new Cent OS 6 default install box, I run into an issue where it connects fine ... but no internet traffic can be router. I assume it's a firewall issue or similar.

Basically here is my firewall and iptables setup:

net.ipv4.ip_forward = 1 (in sysctl)

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE


-Edit: I know it's a firewall . routing issue because I can ping the server fine when connected but not anything else. I ruled out DNS issues because I can't visit any website by IP.

If I have an RDP open with ANOTHER ONE of my servers, and I connect to the VPN, the RDP remains working fine, as do all existing connections, hence it appears the issue is some type of routing issue. I am confused because I use the same script as on my other Cent OS 6 with no problem.
Posted on: 2012/2/17 4:01
Create PDF from Post Print
Top
  •  sombra84
      sombra84
Re: PPTP Server Not Routing Internet
#2
Newbie
Joined: 2012/1/30
From
Posts: 6
Edit 2: I disabled IP Tables and relaunched PPTP server, same issue, great connectivity to RDP, Skype, things already running once VPN launches but no web pages.
Posted on: 2012/2/17 5:26
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: PPTP Server Not Routing Internet
#3
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
If having no problems with CentOS-5 then perhaps your other thread can be marked [SOLVED] per the guidance in Readme First.

Very difficult to guess what's going on without some hard data. Please provide more information about your system by running "./getinfo.sh network" and showing us the output file.
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2012/2/17 18:16
Create PDF from Post Print
Top
  •  serox_3
      serox_3
Re: PPTP Server Not Routing Internet
#4
Newbie
Joined: 2012/2/18
From
Posts: 6
Hi all,


I have installed pptpd on centOS 6.2 and I have a similar issue:

The client can connect to my VPN server but the internet will not work through. Also the client cannot access or ping the other computers from my network except the VPN server.


Network configuration

Wireless router that act as a DHCP server and share the internet connection to all the computers from my network(3 Laptops an 4 virtual using Virtual BOX)
The server is also a virtual PC (the network settings for Virtual Box is bridged, so the IP to the server is assign by the router (has a reserved IP using the MAC))

router IP 192.168.19.1
other computers IPs 192.168.19.10-100(assing via DHCP by the router(every PC has its own reserved IP))

CentOS server:

eth0
IP: 192.168.19.103
netmask 255.255.255.0
gateway: 192.168.19.1
DNS 192.168.19.1

To install and configure the VPN server I used the information from here

/etc/pptpd.conf settings

localip 192.168.0.1
remoteip 192.168.0.234-238,192.168.0.245

in /etc/ppp/options.pptpd

ms-dns 192.168.19.1 / also I used the google DNS and did not work

the rest of the settings from the above config files are the default ones

Other details that may help

In the router I forwarded 1723 port to VPN server's IP(192.168.19.103)

In iptables I opened 1723 port and protocol 47 (with this settings the client can connect to the VPN server)

iptables command that i used

iptables -A INPUT -p tcp -m tcp --dport 1723 -j ACCEPT
iptables -A INPUT -p 47 -j ACCEPT

changed net.ipv4.ip_forward = 1 in /etc/sysctl.conf

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

what I need is if someone can assist and explain what/how to configure the VPN server to permit internet traffic to a client and the client to be able to access the other computers from the network(192.168.19.x)
Posted on: 2012/2/18 14:30
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: PPTP Server Not Routing Internet
#5
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
serox_3 - Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature.

After reading those links you should realize why you should not hijack threads as you have done. Please start a new Topic for your issue to get the attention you need, providing a link to this one if required for context.
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2012/2/18 15:17
Create PDF from Post Print
Top
  •  serox_3
      serox_3
Re: PPTP Server Not Routing Internet
#6
Newbie
Joined: 2012/2/18
From
Posts: 6
Ok, I'll do that, I tough that if there already exist a thread with the same issue I can post in it.

If posible you may delete my posts on this thread. I will create a new one.
Posted on: 2012/2/18 16:53
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: PPTP Server Not Routing Internet
#7
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
Quote:

Elsewhere sombra84 wrote:
Hello,

My issue is ongoing, I have run a series of diagnostics to test what is going on .... ./getinfo.sh network returns "No such file or directory" for me ....

I have verified that target can forward replies back to server as such:

tcpdump -n -i eth0 icmp and src host (client ip) #Ran on server
ping (server ip) # ran on client

Result: ICMP echo replies with a source address of the target. = Okay.

So I move to this: Can the server forward the target reply packets back to the client?

tcpdump -n -i ppp0 icmp and src host (client IP) and dst host (client tunnel IP) #ran on server)
ping (server ip) #ran on client

And I get nothing captured.

I believe the issue to be something to with the server not being able to forward the target reply packets back to the client.

Can anyone provide some insight?

(Followed this guide for Troubleshooting: http://poptop.sourceforge.net/dox/diagnose-forwarding.phtml It's fine until Step 6)


It appears you did not read How to provide information about your system and create the getinfo.sh script.
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2012/2/19 20:45
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com