New answers tagged

0

Yes, to configure ubuntu firewall for scanner, it is easy just use terminal: type in (after entering your password): sudo ufw allow from xxx.xxx.x.xxx (your printer's URL), then press "Enter" That's it. Good luck.


1

The problem was that rsyslog was loading the 50-default.conf preferences before the custom preferences set in my_iptables.conf. The solution was to add a number prefix to the conf filename, one that was lower than 50. So I renamed it to 10-my_iptables.conf. File /etc/rsyslog.d/10-my_iptables.conf # Log kernel generated iptables log messages to file :msg,...


0

I don't think there's anything wrong with the syntax of your command (either of the ufw command itself, or the bash loop - although it would be good practice to quote the $line variable i.e. ... from "$line" to any ...). The ERROR: Bad source address error indicates a problem with the address string itself, and we can guess that it might be due to DOS-style ...


0

Re-read man ufw. There are two, similar, ufw invocations that you're confusing: ufw [--dry-run] [delete] [insert NUM] allow|deny|reject|limit [in|out] [log|log-all] PORT[/PROTOCOL] ufw [--dry-run] [rule] [delete] [insert NUM] allow|deny|reject|limit [in|out [on INTERFACE]] [log|log-all] [proto PROTOCOL] [from ADDRESS [port PORT]] [to ADDRESS [port ...


0

well what worked for me was to use iptable sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT


0

For simple rules, I find it easiest to add the directive to /etc/network/interfaces Example auto eth0 iface eth0 inet static address 10.0.0.1 netmask 255.255.255.0 dns-nameservers 10.0.0.1 post-up iptables -A INPUT -p tcp --dport 80 -j ACCEPT post-down iptables -D INPUT -p tcp --dport 80 -j ACCEPT



Top 50 recent answers are included