IPTABLES
MASQUERADE
Checking NAT
iptables -t nat -v -L POSTROUTING
Adding Masquerade
iptables -t nat -A POSTROUTING -j MASQUERADE
PREROUTING
prerouting use for pointing internet port to local ip address and port
Checking Prerouting
sudo iptables -t nat -v -L PREROUTING -n --line-number
Adding Prerouting
iptables -t nat -A PREROUTING -p tcp -d 95.217.76.186 --dport 36657 -j DNAT --to-destination 192.168.100.2:26657
Delete Prerouting
check line number prerouting will be delete
sudo iptables -t nat -v -L PREROUTING -n --line-number
delete prefouting by line number
sudo iptables -t nat -D PREROUTING 4