Latest LQ Deal: Linux Power User Bundle
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 10-12-2004, 12:50 PM   #1
Registered: Aug 2004
Location: Maine
Distribution: Gentoo Linux
Posts: 239

Rep: Reputation: 30
Unhappy Port forwarding question

OK I am running webmin on port 10000 and need it avalible from the outside

Webmin is running on the same linux box which is doing the routing

I dont know what to put for port forwording for the SOURCE PORT becouse it changes every time

my firewall has blocked attempts to 10000 becouse the source port was on 55118 and other times the source port may be 55107.....

what should I put as an iptables rule to alow access to TCP port 10000 from the outside to anyone from ANY source port

my router is

And another question------
Where are the iptables rules that I enter kept? Where can I go to edit and remove some earler mistakes I may have entered in
thank you in advance! -John

Last edited by GUIPenguin; 10-12-2004 at 12:57 PM.
Old 10-12-2004, 01:30 PM   #2
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
Re: Port forwarding question

Originally posted by GUIPenguin

I dont know what to put for port forwording for the SOURCE PORT becouse it changes every time

you likely mean DESTINATION PORT.
iptables -i <interface> -p tcp --destination-port 10000 -j ACCEPT
iptables -m state --state ESTABLISHED,RELATED -j ACCEPT
you SOURCE PORT will be the port the client is using and will not be bound to a specific one, so don't set i at all.

where your saved rules are depend on your distribution and what program you use to set the rules.

sl mritch.


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
Port Forwarding Question caps_phisto Linux - Networking 1 07-10-2005 10:33 PM
Port forwarding question linuxpyro Linux - Networking 3 10-22-2004 08:13 PM
Port forwarding question Doolspin Linux - Networking 2 09-03-2004 10:11 PM
port forwarding question larry Linux - Networking 2 06-10-2004 10:34 AM
Question about Ip/Port Forwarding Half_Elf Linux - Networking 3 10-14-2002 02:47 PM > Forums > Linux Forums > Linux - Networking

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