LinuxQuestions.org
Visit Jeremy's Blog.
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 11-07-2001, 09:50 PM   #1
acdcbag
LQ Newbie
 
Registered: Nov 2001
Posts: 3

Rep: Reputation: 0
IpTables port forwarding works but cant get out


I have set up a firewall using IPtables and have successfully gotten traffic on a port to go through the linux gateway to the internal web server. The gateway machine seems to have full allowed access, I can reach it remotely, it can ping the outside, email gets to it and users receive their email from it. The problem is with the internal machine it can get to any of the machines we have in our building, internal ip's and also external ip's. but when I try to leave our subnet it fails.
 
Old 11-08-2001, 03:48 PM   #2
phek
Member
 
Registered: Jul 2001
Location: California, US
Distribution: Slackware
Posts: 196

Rep: Reputation: 30
make sure your iptables has this line

iptables -t nat -A POSTROUTING -o $INET_IFACE -j SNAT --to-source $INET_IP
 
  


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
IPCHAINS port forwarding and IPTABLES port forwarding ediestajr Linux - Networking 26 01-14-2007 07:35 PM
Port Forwarding some ports works some don't Sarcha Linux - Networking 2 07-22-2005 04:03 PM
iptables port forwarding berrance Linux - Networking 5 02-26-2005 07:03 AM
IPTABLES #Port Forwarding goldenmag Linux - Security 4 11-21-2003 07:10 AM
Iptables w/port forwarding claytonj25 Linux - Security 8 12-22-2001 08:30 AM

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

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