LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 03-14-2006, 04:05 PM   #1
tmchardy
Member
 
Registered: Dec 2005
Distribution: Fedora Core
Posts: 55

Rep: Reputation: 15
pptpd configuration problems


I just got a pptpd vpn server set up. I can log in from a windows box, but have serious configuration issues (I used a simple howto). I was hoping that someone can help with the problems (I'll list them from worst to least concerning).

1) Network traffic not routing to other machines.
I've tried modifying the sysctl.conf file as specified, but I'm not able to ping/access machines on the network. My pptpd server is 192.168.1.3 and I can ping that, but can't ping 192.168.1.101. (I shut down the firewalls to do this test - just to note this due to my next question). I'm really stuck on this one since this is why I set this up in the first place!

2) Can not access the pptpd server with the firewall up.
Maybe it's related? I've seen notes that you may have routing/access problems if the server connected does not have the same subnet. However, the machine I'm connecting with is assigned an ip of 192.168.1.200 (I can ping myself. ) Since my pptpd server is 192.168.1.3 I would assume this should work! What's really odd is I can't access the webserver on 192.168.1.3 unless the firewall is down, but the firewall allows 0/0 on port 80. I can't see why the firewall would be blocking me regardless of what address I'm getting assigned! Maybe it's something different.

3) I need a better authentication model. The chap-secrets file is a joke. I mean, clear-text! C'Mon! However, the only other option I've seen hits the other end of the spectrum, the whole AD server thing. I was hoping there would be a happy medium? PAM authentication or something? Maybe with a control list of who can/cannot log in? Is there any advice someone can give me on this?

Now, remember - I ask all these questions being quite a newb at this, so although any and all help is appreciated, make sure it's as simple as the walkthrough I followed to get to this point (which btw was as clear as mud) or I won't be able to follow along.

Much thanks in advance to any who can help with at least the first issue!
 
Old 03-14-2006, 06:00 PM   #2
tmchardy
Member
 
Registered: Dec 2005
Distribution: Fedora Core
Posts: 55

Original Poster
Rep: Reputation: 15
Problems 1 & 2 solved.

1) The pptpd.conf file only had a localip of the pptpd server. It needed to be a range of my network:
192.168.1.3-199
Make sure that you don't put remote addresses or it doesn't work. (e.g. I had 200 overlapping in both localip and remoteip and I couldn't connect to anything).

2) Definately a firewall issue. I set the following IPTable commands and it cleared it up:
#Allow forwarding from inside to out and vice versa
/sbin/iptables -A FORWARD -i $INTINT -s $LOCALNETWORK -j ACCEPT
/sbin/iptables -A FORWARD -o $INTINT -d $LOCALNETWORK -j ACCEPT

#Allow pptpd connections (port 1723)
/sbin/iptables -t nat -A PREROUTING -i $EXTINT -p TCP \
--sport $PUBLICPORTS --dport 1723 -j ACCEPT
/sbin/iptables -t nat -A OUTPUT -o $EXTINT -p 47 -j ACCEPT
/sbin/iptables -A OUTPUT -o $EXTINT -p 47 -j ACCEPT
/sbin/iptables -A INPUT -i $EXTINT -p 47 -j ACCEPT
/sbin/iptables -A INPUT -i ppp+ \
-s $LOCALNETWORK -d $LOCALNETWORK -j ACCEPT
/sbin/iptables -A OUTPUT -o ppp+ \
-s $LOCALNETWORK -d $LOCALNETWORK -j ACCEPT
echo "PPTPD allowed"

3) Still working on it... any ideas out there?
 
  


Reply



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
pptpd - problems to open new connections gottin Linux - Software 0 03-14-2006 01:55 PM
pptpd help rohang Linux - Networking 1 02-25-2006 06:48 PM
PPTPD Problems in Debian Sarge 3.1 Mr.Ampersand() Linux - Networking 1 09-02-2005 11:02 PM
VPN pptpd problems ?!?!? thewonka Linux - Networking 1 02-23-2005 06:44 AM
problems with pptpd start up!! ahshin Linux - Networking 2 09-09-2003 10:38 PM

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

All times are GMT -5. The time now is 02:56 PM.

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