iptables running masquerade command without an error but not “saving” it ?

iptables running masquerade command without an error but not “saving” it ?:

So basicly when i run:

iptables -t nat -A POSTROUTING -o enp0s3 -j MASQUERADE 

enp0s3 being my wan, it doesn’t give me any erros but when i run

iptables -L 

it just shows that nothing is set (if the iptables were clear before using the maquarade setting but if any other setting was set it will display it as expected), every other iptables setting(such as port forwarding) works just not masquarade.

Running Debian 9.1 in a Virtual box VM with 2 NICs one nat one intnet with 2 other debian VMs (basicly trying to create a basic virtual router on debian) on the same intnet.

Any one know why that’s happening ? It has caused me a bit of a headache and googling didn’t help. I’m very new to iptables and would appricieate some help.

submitted by /u/Paliak9
[link] [comments] via Linux 101 stuff. Questions are encouraged, noobs are welcome!

Posted in IFTTT, Linux 101 stuff. Questions are encouraged, noobs are welcome!