LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-06-2010, 03:41 AM   #1
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Rep: Reputation: 30
Poptop, linux, windows XP


I setup Poptop as per these instructions:
http://www.cayugalake.net/index.php?...inux-PPTP.html

The service started correctly.
However, when I tried connecting from Windows it would not connect.
DO I have to port forward anything in iptables?
 
Old 01-06-2010, 05:35 AM   #2
TiMich
LQ Newbie
 
Registered: Sep 2008
Location: Rep. Moldova
Distribution: openSuse, CentOS
Posts: 2

Rep: Reputation: 0
If the client could not connect to the server, i guess it is not a port forwarding issue. Maybe you'll need to deal with it later, after you succeed to connect to pptp server.
Are you sure you enabled in iptables input and output rules for GRE protocol and tcp 1723 port? Something like this:
Code:
iptables -A INPUT -i $EXTERNAL_INTERFACE -p tcp -s $ANYWHERE --dport 1723 -j ACCEPT
iptables -A INPUT -i $EXTERNAL_INTERFACE -p 47 -s $ANYWHERE -j ACCEPT
iptables -A OUTPUT -o $EXTERNAL_INTERFACE -p tcp -s $EXTERNAL_IP -d $ANYWHERE --sport 1723 -j ACCEPT
iptables -A OUTPUT -o $EXTERNAL_INTERFACE -p 47 -s $EXTERNAL_IP -d $ANYWHERE -j ACCEPT
Also looking in logs can help you to identify the problem.
 
Old 01-06-2010, 05:46 AM   #3
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by TiMich View Post
If the client could not connect to the server, i guess it is not a port forwarding issue. Maybe you'll need to deal with it later, after you succeed to connect to pptp server.
Are you sure you enabled in iptables input and output rules for GRE protocol and tcp 1723 port? Something like this:
Code:
iptables -A INPUT -i $EXTERNAL_INTERFACE -p tcp -s $ANYWHERE --dport 1723 -j ACCEPT
iptables -A INPUT -i $EXTERNAL_INTERFACE -p 47 -s $ANYWHERE -j ACCEPT
iptables -A OUTPUT -o $EXTERNAL_INTERFACE -p tcp -s $EXTERNAL_IP -d $ANYWHERE --sport 1723 -j ACCEPT
iptables -A OUTPUT -o $EXTERNAL_INTERFACE -p 47 -s $EXTERNAL_IP -d $ANYWHERE -j ACCEPT
Also looking in logs can help you to identify the problem.
Is the external interface the same ip address as the external ip?

This is my current iptables:
Quote:
*filter
:INPUT DROP [10:568]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [5:260]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 1057 -m state --state NEW -m recent --set --name SSH -$
-A INPUT -i eth0 -p tcp -m tcp --dport 1057 -m state --state NEW -m recent --update --seconds$
-A INPUT -d xx.xxx.xxx.199 -p tcp -m tcp --dport 1057 -m state --state NEW -j ACCEPT
-A INPUT -d xx.xxx.xxx.199 -p tcp -m tcp --dport 5555 -m state --state NEW -j ACCEPT
-A INPUT -d xx.xxx.xxx.199 -p tcp -m tcp --dport 1723 -m state --state NEW -j ACCEPT
-A INPUT -p 47 -j ACCEPT

-A INPUT -p udp -m udp --dport 53 -m state --state NEW -j ACCEPT
-A INPUT -p tcp -m tcp --dport 53 -m state --state NEW -j ACCEPT
-A INPUT -p udp -m udp --dport 123 -m state --state NEW -j ACCEPT
-A INPUT -p tcp -m tcp --dport 8002 -m state --state NEW -j ACCEPT
-A INPUT -p tcp -m tcp --dport 9001 -m state --state NEW -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -m state --state NEW -j ACCEPT
-A INPUT -d xx.xxx.xxx.198 -p tcp -m state --state NEW -m tcp --dport 8080 -j ACCEPT
-A INPUT -d xx.xxx.xxx.198 -p tcp -m state --state NEW -m tcp --dport 1935 -j ACCEPT
-A INPUT -d xx.xxx.xxx.198 -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
-A INPUT -d xx.xxx.xxx.198 -p tcp -m state --state NEW -m tcp --dport 443 -j ACCEPT
-A INPUT -p icmp -m limit --limit 1/sec --limit-burst 1 -j ACCEPT
-A INPUT -d xx.xxx.xxx.198 -p icmp -m icmp --icmp-type 8 -m state --state NEW,RELATED,ESTABLI$
-A OUTPUT -s xx.xxx.xxx.198 -p icmp -m icmp --icmp-type 0 -m state --state RELATED,ESTABLISHE$
-A OUTPUT -o lo -j ACCEPT
-A OUTPUT -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT

COMMIT
 
Old 01-06-2010, 05:59 AM   #4
TiMich
LQ Newbie
 
Registered: Sep 2008
Location: Rep. Moldova
Distribution: openSuse, CentOS
Posts: 2

Rep: Reputation: 0
external_interface is the network interface connected to WAN (like eth0 or eth1, etc). But it seems to be ok with your iptables configs. Do you see any activity of the pptp server in /var/log/messages?
 
  


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
POPTOP server for win32 clients and 2 linux boxes not working with linux mago Linux - Networking 0 10-16-2006 03:13 PM
PopTop almost there :D zuzu Linux - Networking 0 02-05-2006 01:13 PM
poptop on mandrake 10.0 sigfriedmcwild Linux - Networking 13 01-30-2005 02:02 PM
PoPToP VPN with Shorewall: can only reach PoPToP server pgwillemsen Linux - Networking 0 12-27-2004 07:11 AM
Poptop and DHCP Rikkzazz Linux - Networking 2 05-12-2004 10:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:16 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