LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-29-2004, 11:16 PM   #1
LiquidKernel
LQ Newbie
 
Registered: Jul 2002
Distribution: Slackware
Posts: 11

Rep: Reputation: 0
Forwarding PPTP (or anything really) Being Filtered


EDIT: Apparently it was some rules on the box running PPTP, cleared iptables on it and all works. Everything is fixed and good now. Thanks for looking

I've been trying to forward PPTP (ports 1723 and 47) to an internal machine recently, and for some reason it is no longer working. nmap reports the forwarded ports as being filtered.... I'm not sure why, but could someone check to see if there are any mistakes in my iptables setup?

Code:
# Local NAT
/sbin/iptables -P INPUT ACCEPT
/sbin/iptables -t nat -A POSTROUTING -o $extint -j MASQUERADE

#BLOCK chain
/sbin/iptables -N BLOCK
/sbin/iptables -A INPUT -j ACCEPT
/sbin/iptables -A BLOCK -m state --state ESTABLISHED,RELATED -j ACCEPT

# Block mySQL
/sbin/iptables -A BLOCK -i $extint -p tcp --tcp-flags SYN,RST SYN --dport 3306 -j REJECT

# Forward PPTP
/sbin/iptables -t nat -A PREROUTING -i $extint -p tcp --dport 1723 -j DNAT --to 172.19.1.6
/sbin/iptables -A FORWARD -i $extint -o $intint -p TCP -d 172.19.1.6 --dport 1723 -j ACCEPT
/sbin/iptables -A FORWARD -i $extint -o $intint -p 47 -m state --state NEW,ESTABLISHED,RELATED -j AC
CEPT
/sbin/iptables -t nat -A PREROUTING -i $extint -p 47 -j DNAT --to 172.19.1.6
Hope someone could help. Thanks.

Last edited by LiquidKernel; 08-29-2004 at 11:22 PM.
 
  


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
APF how to use FILTERED latino Linux - Security 1 09-05-2005 01:22 AM
smtp filtered depaul Linux - Security 6 04-23-2004 08:45 AM
filtered port juanb Linux - Security 1 01-29-2004 08:39 PM
pptp and forwarding Backslash Linux - Networking 0 09-27-2003 03:34 AM
Forwarding PPTP through the firewall jsimpson98 Linux - Networking 0 07-08-2003 06:16 AM

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

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