I have a webserver which is running on ip address 192.168.11.100
How can i use iptables to redirect all web traffic (http and https) to my webserver on LAN?
After that i want to add except list mac address to this rule. How can i do that?
I tried this command but nothing happened with LAN IP.
iptables -t nat -I PREROUTING -p tcp --dport 80 -j DNAT --to-destination 192.168.11.100
Update: with command above it seems like get affect. But i don't know why the result is: the webpage is not available.
But when i access 192.168.11.100 the server return me a index page. So how should i do?
Thank you!