Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-04-2003, 08:16 PM
|
#1
|
Member
Registered: May 2003
Location: Caribbean
Distribution: Fedora Core2
Posts: 403
Rep:
|
Simple enough...iptables..port forwarding
Hi guys,
I just wanted a little help.
Could someone give me some sample IPTABLES lines to do port forwading of ports 7750:7751 for both UDP and TCP, to a machine (192.168.100.11).
The router/firewall has:
-eth0 as the internal NIC on IP 192.168.100.1
and
-eth1 as the external NIC on a dynamic IP
And also, isn't #IPTABLE --check suppose to be the command to do rule checking with ITPABLES? If not, what is it to do rule checking please?
Thanks Alot
|
|
|
07-05-2003, 11:10 AM
|
#2
|
Member
Registered: Feb 2003
Location: Atlanta, GA
Distribution: RHAS 2.1, RHEL3, RHEL4, SLES 8.3, SLES 9, SLES9_64, SuSE 9.3 Pro, Ubuntu, Gentoo
Posts: 335
Rep:
|
Try:
iptables --check [chain]
to test this packet on chain
Try man iptables to see all commands
|
|
|
07-18-2003, 10:05 PM
|
#3
|
Member
Registered: May 2003
Location: Caribbean
Distribution: Fedora Core2
Posts: 403
Original Poster
Rep:
|
Portforwading???????
Somebody....Anybody....HELP!!!!!!
|
|
|
07-19-2003, 01:22 AM
|
#4
|
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791
Rep:
|
use
iptables -t NAT
|
|
|
07-19-2003, 02:08 AM
|
#5
|
Member
Registered: Apr 2002
Location: Melbourne, Australia
Distribution: Gentoo
Posts: 273
Rep:
|
Yopu may have already sorted this but a rule like the following should work
iptables -t nat -A PREROUTING -p tcp --dport 7750:7751 -i eth1 -j DNAT --to 192.168.100.11
any connection to eth1 on ports 7750 or 7751 will be passed through to 192.168.100.11 (just change tcp fpr udp for the udp part).
Rich
|
|
|
All times are GMT -5. The time now is 06:04 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|