[root@wifi ~]# iptables -L -t nat
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
REDIRECT tcp -- anywhere !192.168.1.1
DROP udp -- anywhere !192.168.1.1 udp dpt:!domain
REDIRECT tcp -- anywhere !192.168.1.1
iptables -t nat -A PREROUTING -p tcp ! -d 192.168.1.1 -j REDIRECT
iptables -L -t nat
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
REDIRECT tcp -- anywhere !192.168.1.1
iptables-save
iptables-save > file
iptables-restore < file