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. |
|
 |
02-18-2003, 10:35 AM
|
#1
|
|
Senior Member
Registered: Feb 2003
Location: The Real Washington
Distribution: Ubuntu, Debian, SuSE, UnSlung, Android
Posts: 1,819
Rep:
|
Verify this rule please. Iptables help needed..
I am attempting to forward all tcp connections on port 5631 and udp connections on port 5632 to an internal ip. This is my rule. Should this work, or am I missing something?
iptables -t nat -A PREROUTING -p tcp --dport 5631 -j DNAT to 192.168.0.5:5631
iptables -t nat -A PREROUTING -p udp --dport 5632 -j DNAT to 192.168.0.5:5632
Thanks.. 
|
|
|
|
02-18-2003, 01:35 PM
|
#2
|
|
Moderator
Registered: May 2001
Posts: 24,779
|
Aren't you missing rules on the FORWARD chain?
Did you check here under the Iptables section for examples?
|
|
|
|
02-18-2003, 02:02 PM
|
#3
|
|
Member
Registered: Oct 2002
Location: USA, IL
Distribution: Debian/Gentoo/Slack
Posts: 215
Rep:
|
Don't forget,
echo 1 > /proc/sys/net/ipv4/ip_forward
|
|
|
|
02-18-2003, 02:22 PM
|
#4
|
|
Senior Member
Registered: Feb 2003
Location: The Real Washington
Distribution: Ubuntu, Debian, SuSE, UnSlung, Android
Posts: 1,819
Original Poster
Rep:
|
Well I got port 25 working (forwarded). I have a thread started in networking about my inability to get the others working. I was missing the Forward rules. I have them now but they don't work..
Anyone wishing to help me please see my post in networking.
Thanks for everything people, you rule.... 
|
|
|
|
02-18-2003, 02:46 PM
|
#5
|
|
Moderator
Registered: May 2001
Posts: 24,779
|
I would like to caution you you have opened 3 consecutive threads about the same subject in a very short timespan. I think this borders on bad netiquette. Please either stay with one thread and build it up, or rephrase/refine your question next time.
I'll close the two preceding the one in /networking.
|
|
|
|
| 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 08:47 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
|
|