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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:41 PM.
|
|
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
|
|