MG2900, Connecting to Network

Hi. These commands worked allowing desktop to print by network after my phone started to also connect to the Canon.

sudo ufw allow from 192.168.1.0/24 to 127.0.0.1 port 631

sudo ufw allow from 127.0.0.1 port 631 to 192.168.1.0/24

There is another command I was advised to enter to solve the network printer problem:

sudo ufw allow proto all from 192.168.1.0/24        to 127.0.0.1 port 631

sudo ufw allow proto all from 127.0.0.1 port 631    to 192.168.1.0/24

I was also advised to enter this command if the '/etc/hosts' file had an entry for 127.0.1.1:

sudo ufw allow proto all from 192.168.1.0/24        to 127.0.1.1 port 631

sudo ufw allow proto all from 127.0.1.1 port 631    to 192.168.1.0/24

Thanks again for the help. Let me know @ericmarceau if this post is correct--a lot of numbers all over the place.

2 Likes

Sorry, Craig, but I had applied the "strike-thru" meaning replace the "-p all" (iptables form) with "proto all" (ufw form).

Could you please edit your response to remove all the "-p all" references, to avoid confusion?