iptables on SUSE
SUSE server IP is 192.168.0.25,because my firewall just can do 1 to 1 NAT, I want to 1 WAN IP can use in 2 different LAN
I would like to ask if I want to set NAT function, is it must have 2 lan card?
Can I just configure it with 1 lan card??
because I just want to redirect port 80 to my web server
I have write a script but it is not work? where do I wrong?
here is my script
iptables -t nat -F
iptables -t nat -X
iptables -t nat -Z
iptables -t mangle -F
iptables -t mangle -X
iptables -t mangle -Z
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -t nat -P INPUT ACCEPT
iptables -t nat -P OUTPUT ACCEPT
iptables -t nat -P FORWARD ACCEPT
iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to 192.168.0.5