Cannot print until I flush iptables
I have installed iptables-persistent, done iptables -F, iptables-save to /etc/iptables/rules.v4 and 6, reboot. I find I cannot print on a network connected printer, or log in to my router, but I can access the internet. If I flush iptables again, it all works. If I compare the listing of iptables before and after reboot, they are different. Ubuntu 20.04.1, connected to network by ethernet. How can I fix this
Re: Cannot print until I flush iptables
Look through the rules for issues?
Do you do an iptables-restore /etc/iptables/rules.v4 just after networking is started?
Re: Cannot print until I flush iptables
If I do the restore after login it does work, but needs sudo to do it, I would like it to happen automatically so my wife as a non-techy can use the system without my help.
Re: Cannot print until I flush iptables
Quote:
Originally Posted by
manorbarndavid2
If I do the restore after login it does work, but needs sudo to do it, I would like it to happen automatically so my wife as a non-techy can use the system without my help.
Yes, you should make it part of the network startup steps. In the old days, that was trivial. Just add a post-up stanza to the interfaces file and be done. In the new systemd world, you'll probably want to make a "unit" file and screw with all the dependencies for network startup. No need for sudo at this level. Everything runs as root that way.
Re: Cannot print until I flush iptables
I am not familiar with the start up at that level, and would appreciate some pointers. Thank you
Re: Cannot print until I flush iptables
Re: Cannot print until I flush iptables
Thank you I will give it a try
Re: Cannot print until I flush iptables
Still no luck. Booted up, flushed iptables, sudo iptables-save to /etc/iptables/rules.v4 and ip6tables to v6. Reboot, no access to printer or to log in to router. Sudo iptables-restore and ip6tables-restore from the rules files above. Now it all works ok. So the problem seems to be not loading the rules on start up, despite both iptables-persistent and netfilter-persistent both enabled
Re: Cannot print until I flush iptables
How do I say this nicely.
Prove what you are claiming.
Please.
There are all sorts of claims, without any proof provided. From here, it seems that what is being said is
Quote:
I did everything. It doesn't work.
Please show the proof, step-by-step, for what you've done. Use select/pasted text inside code tags, not images. Nobody can correct issues when images are provided.
Re: Cannot print until I flush iptables