[SOLVED] Need to reload ufw after each restart to apply rules
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Need to reload ufw after each restart to apply rules
This effects 2 Ubuntu Mate 16.04.4 installs. One is on a laptop and the other is on a miniboard-computer, the Odroid-C2. Some time ago I noticed that after each reboot I was unable to ssh into my laptop nor my Odroid, this perplexed me as I haven't changed any iptables / UFW firewall rules. Internet works, as in the browser connects just fine, but other programs which rely on open ports such as ssh, ftp server and others can't function until I reload ufw
Code:
sudo ufw reload
I am guessing that a network or a kernel update some time ago, maybe 4-5 weeks ? has caused this issue. Is there a way to automate this command upon restart, either before or after the login name/password screen as sometimes I like to start up one of my Ubuntu installs and just use ssh without logging in via gui.
I wouldn't say minutes.
immediately after sysinit or whatever.
When the services have all had their chance to start,
/etc/r.local is last.
Runs at System-level
I wouldn't say minutes.
immediately after sysinit or whatever.
When the services have all had their chance to start,
/etc/r.local is last.
Runs at System-level
Yeah you're correct, I am able to ssh after I log in using the port I assigned to my ssh server. Also other applications which require ports to be opened work as well.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.