#To redirect ip
- Código: Selecionar todos
iptables -t nat -I PREROUTING -i eth0 -p all -s 192.168.0.2 --dport 80 -j DNAT --to-destination 192.168.0.1:8787
#to remove redirection
- Código: Selecionar todos
iptables -t nat -D PREROUTING -i eth0 -p all -s 192.168.0.2 --dport 80 -j DNAT --to-destination 192.168.0.1:8787
to make these rules run when bfw startup
go to
1.file manager
2.etc
3.brazilfw
4.rc.local
- Código: Selecionar todos
iptables -t nat -I PREROUTING -i eth0 -p all -s 192.168.0.2 --dport 80 -j DNAT --to-destination 192.168.0.1:8787
save
backup(save configurations)
reboot