- Jul 15, 2003
- 537
- 0
- 0
Hey there.
I'm somewhat new to the whole iptables thing (and linux), so bear with me. I've got a router running dd-wrt custom firmware, which is a minidistro of linux. I'd like to forward a port from external to my server.
When I use the built in GUI interface and add the forward, it just (seems to) add a rule from "anywhere" to 192.168.1.100 dest port 80 on the FORWARD chain.
That works when I do it by hand too. However, if I do something like:
iptables -I FORWARD 8 -p tcp -d ODIN --dport 80 -j ACCEPT
it produces the same rule (even with iptables -L -v) as far as I can tell, but doesn't work. Is it possible to do something like this? I feel like as long as a computer is listed in the /etc/hosts file, it shoudn't be a problem -- and yet it doesn't seem to work.
Thanks
I'm somewhat new to the whole iptables thing (and linux), so bear with me. I've got a router running dd-wrt custom firmware, which is a minidistro of linux. I'd like to forward a port from external to my server.
When I use the built in GUI interface and add the forward, it just (seems to) add a rule from "anywhere" to 192.168.1.100 dest port 80 on the FORWARD chain.
That works when I do it by hand too. However, if I do something like:
iptables -I FORWARD 8 -p tcp -d ODIN --dport 80 -j ACCEPT
it produces the same rule (even with iptables -L -v) as far as I can tell, but doesn't work. Is it possible to do something like this? I feel like as long as a computer is listed in the /etc/hosts file, it shoudn't be a problem -- and yet it doesn't seem to work.
Thanks
