I add this rule:
sudo iptables -t nat -A OUTPUT -d a.b.c.d -p tcp \ --dport 1723 -j DNAT --to-destination a.b.c.d:10000
- When restart computer rules are deleted. Why?
- What I can do to make the rules persist?
There is no option in iptables which will make your rules permanent. But you can use
First add the iptable rule using the command you gave.
Then save iptables rules to some file like
Add the following command in
(Because it was suggested to make this an answer of its own...)
On debian install
The package will automatically load
Any time you modify your rules, run