Register a domain and help support LQ
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-21-2007, 02:54 PM   #1
LQ Newbie
Registered: Oct 2007
Location: TURKEY
Distribution: Ubuntu
Posts: 2

Rep: Reputation: 0
simple DNAT iptables rule doesn't work.


i tried this iptables rule in my home network and it works.

But it doesn't network on our campus network.

What should be the problem?

the rule is:
iptables -t nat -A PREROUTING -p tcp -i eth1 --dport 80 -j DNAT --to-destination
Old 10-21-2007, 05:24 PM   #2
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
It is possible the campus network is setup to block common server ports like that.

Old 10-22-2007, 01:35 AM   #3
LQ Newbie
Registered: Oct 2007
Location: TURKEY
Distribution: Ubuntu
Posts: 2

Original Poster
Rep: Reputation: 0
There are lots of web server in the same network. And without forwarding web server works.



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
iptables problem: DNAT rule for RTP stream bbeers Linux - Security 2 11-21-2006 10:34 PM
iptables DNAT pshepperd Linux - Security 1 05-22-2004 03:56 PM
iptables DNAT of pop3 won't work danGynn Linux - Networking 0 02-26-2004 11:49 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

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