Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-22-2004, 09:03 AM   #1
LQ Newbie
Registered: Jul 2004
Posts: 3

Rep: Reputation: 0
Question Port Forwarding

We need help with port forwarding.

Here is what we are using...
Squid Proxy on SUSE 9.1 pro
This machine has two network cards
eth0 is connected to the internet and has a dynamic ip
eth1 is for our internal network

We need to forward port 999 to a client computer at which is setup to accept connections on port 999 (this works on our internal network if we hit

We need to connect from another location to this client computer and need the proxy(the only connection to the internet) to forward the port.

We have Suse Firewall 2 enabled and we don't want to use any other firewall.

We tried to enter these commands into terminal

$IPTABLES -t nat -A PREROUTING -i -p tcp --dport 999 -j DNAT --to

$IPTABLES -A INPUT -i $ -d 0/0 -p tcp --dport 999 -j ACCEPT

Then we saved with

After a reboot it does not seem to save what we have done.
Old 07-22-2004, 10:47 AM   #2
Registered: May 2003
Location: Buenos Aires, Argentina
Distribution: Debian
Posts: 61

Rep: Reputation: 15
Iptables works in cascade. so if before the last rule you make is one telling to drop te package, it never reaches your new rule so its droped.
verify your ruleset and try again.
good luck!
Old 07-22-2004, 12:28 PM   #3
Registered: Sep 2002
Location: lahore pakistan
Distribution: slackware,redhat, FreeBSD,openbsd
Posts: 219

Rep: Reputation: 30
now use



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
Simple Port Forwarding Firewall - not forwarding MadTurki Linux - Security 14 04-09-2006 12:08 PM
Port 80 forwarding to port 22 with iptables zahoo Linux - Networking 3 02-22-2005 07:22 AM
port forwarding and packet forwarding syrtsardo Linux - Newbie 2 07-03-2003 10:37 AM
How to do ip port forwarding cmardhekar Linux - General 0 08-28-2001 12:49 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration