Skip to main content
3 of 5
It's rather distro-specific question
Mat
  • 54.9k
  • 11
  • 164
  • 143

Why do iptables rules disappear when restarting my Debian system?

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
  1. When restart computer rules are deleted. Why?
  2. What I can do to make the rules persist?
Jhonathan
  • 3.8k
  • 4
  • 27
  • 23