pc with Linux Mint 18.3 Sylvia 64-bit
Kernel Linux 4.13.0-36-generic x86_64
mate 18
i have first wireless wlp6s0 in 192.168.0.52
and second wireless wlp8s0 in 192.168.1.18
first controll the rule of iptables with this command sudo iptables -L
return this:
Code: Select all
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
i try to set by hand
sudo iptables -t mangle -A OUTPUT -j CONNMARK --set-mark 1
sudo iptables -t mangle -A OUTPUT -m statistic --mode nth --every 2 --packet 0 -j RETURN
sudo iptables -t nat -A POSTROUTING -m connmark --mark 1 -j SNAT --to 192.168.0.52
after this i control if the rule is accepted in:
sudo iptables -L
but return always vanilla configuration , and rule do not return error , anyone can help me ???
thankz