freakazoid
31-10-2007, 09:11
Hello,
i've been trying to configure my WL-500gP box (with 1.9.2.7-7g oleg firmware) to create a thhtpd server on it and i can't seem to connect to it other way than to tipe in the port (81) next to ip.I think i've got a problem with post-firewall booting. I used this how-to for the server:
http://www.macsat.com/macsat/content/view/23/29/
my post-firewall is like this:
#!/bin/sh
iptables -D INPUT -j DROP
iptables -A INPUT -p tcp --dport 81 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -t nat -A PREROUTING -i $1 -p tcp --dport 80 -j DNAT --to-destination $4:81
iptables -A INPUT -j DROP
when i try to start ./post-firewall i get this:
Warning: wierd character in interface `-p' (No aliases, :, ! or *).
Bad argument `tcp'
Try `iptables -h' or 'iptables --help' for more information.
#
Can anybody help me?
i've been trying to configure my WL-500gP box (with 1.9.2.7-7g oleg firmware) to create a thhtpd server on it and i can't seem to connect to it other way than to tipe in the port (81) next to ip.I think i've got a problem with post-firewall booting. I used this how-to for the server:
http://www.macsat.com/macsat/content/view/23/29/
my post-firewall is like this:
#!/bin/sh
iptables -D INPUT -j DROP
iptables -A INPUT -p tcp --dport 81 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -t nat -A PREROUTING -i $1 -p tcp --dport 80 -j DNAT --to-destination $4:81
iptables -A INPUT -j DROP
when i try to start ./post-firewall i get this:
Warning: wierd character in interface `-p' (No aliases, :, ! or *).
Bad argument `tcp'
Try `iptables -h' or 'iptables --help' for more information.
#
Can anybody help me?