LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-06-2003, 03:37 AM   #1
wilsonmau
LQ Newbie
 
Registered: Jun 2003
Posts: 3

Rep: Reputation: 0
DNAT question (Iptables)


Dear allĄG

I want my NAT server to do DNAT. so I do commands as followĄG
/sbin/iptables -t nat -A PREROUTING -i eth1 -p tcp -d $nat_ip --dport 80 -j DNAT --to 192.168.1.11
echo "1" > /proc/sys/net/ipv4/ip_forward

(the NAT server's eth1 connect with Internet , and 192.168.1.11 has http service & no firewall)

But it seems not work. (cann't find pages)
How should I do ??
Can any one help me ? Thsnks!! ^_^
 
Old 06-06-2003, 06:50 AM   #2
wilsonmau
LQ Newbie
 
Registered: Jun 2003
Posts: 3

Original Poster
Rep: Reputation: 0
I got the answer
If I do a command "/sbin/iptables -F " before other rules
the DNAT would work.
ThanksĄIĄI
 
  


Reply



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
iptables DNAT pshepperd Linux - Security 1 05-22-2004 03:56 PM
Iptables DNAT weirdness matta Linux - Networking 3 04-07-2004 03:11 AM
problem about iptables DNAT. zufeng Linux - Security 3 06-19-2003 09:29 AM
iptables DNAT bentz Linux - Networking 15 05-19-2003 01:17 PM
Simple iptables DNAT question taylor Linux - General 0 10-02-2001 06:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:31 PM.

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