Networking Forums

Networking Forums > Computer Networking > Linux Networking > iptables blocks httpd, why?

Reply
Thread Tools Display Modes

iptables blocks httpd, why?

 
 
Coenraad Loubser
Guest
Posts: n/a

 
      03-08-2005, 08:02 PM
I've got a webserver running on port 80. Why can't external sites access it
after I execute the following? The intended port gets through... but I
suspect everything else goes to the forwarded
port too...

################################################## ######################
ports=5678
dest=192.168.0.95

echo Forwarding udp ports $ports to $dest...
iptables -t nat -A PREROUTING -i $ethinet -p udp --dport $ports -j
DNAT --to-dest $dest
iptables -A FORWARD -p udp -i $ethinet --dport $ports -d $dest -j ACCEPT

echo Forwarding tcp ports $ports to $dest...
iptables -t nat -A PREROUTING -i $ethinet -p tcp --dport $ports -j
DNAT --to-dest $dest
iptables -A FORWARD -p tcp -i $ethinet --dport $ports -d $dest -j ACCEPT
################################################## ######################

I know, I know. I don't know much about all this... so help me out here!
Thanks!



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IPTables blocks all incoming traffic from other networks Angus Macleod Linux Networking 2 07-10-2007 09:09 PM
HTTPD : Speed from the 90s of the Web Henry16@2cuk.co.uk Linux Networking 3 10-25-2006 03:38 PM
iptables blocks access to some websites? Gururajan Ramachandran Linux Networking 2 09-03-2004 06:38 PM
iptables router 'blocks' some websites ? hega72@gmx.de Linux Networking 6 06-16-2004 06:38 PM
iptables blocks 'established' packets ? Tom Van Overbeke Linux Networking 0 07-01-2003 01:35 PM



1 2 3 4 5 6 7 8 9 10 11