LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-10-2021, 05:17 PM   #16
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,855

Rep: Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149

Yes, this looks like a firewall config issue, and likely also impacting on Avahi (as per opening post).
 
1 members found this post helpful.
Old 03-10-2021, 05:19 PM   #17
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,855

Rep: Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149
The way your current firewall is configured, only traffic to and from 103.137.12.219/32 is allowed.
 
Old 03-10-2021, 05:26 PM   #18
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,814

Rep: Reputation: 5959Reputation: 5959Reputation: 5959Reputation: 5959Reputation: 5959Reputation: 5959Reputation: 5959Reputation: 5959Reputation: 5959Reputation: 5959Reputation: 5959
Please explain how your network is configured and where 192.168.0.14 fits into the scheme.
 
Old 03-10-2021, 07:36 PM   #19
Muzzah
LQ Newbie
 
Registered: Mar 2021
Posts: 16

Original Poster
Rep: Reputation: Disabled
Activating and deactivating the firewall seems to make no difference at all, I still get the same output when I try to ping the printer. When I ping the printer using that ip address on a windows computer on the same wifi network it works fine. Strangely I can't even access my modem's admin page at 192.168.0.1 though again the windows computer has no problems. So my problem isn't just with the printer. But how can I be on the internet if I can't even log in to the router? Anything else I can try to narrow down where the problem might be?

In case it's any use:

rjh@rjh-NUC8i5BEH:~$ ifconfig
eno1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 1c:69:7a:0d:83:11 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 16 memory 0xc0b00000-c0b20000

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen 1000 (Local Loopback)
RX packets 1716 bytes 177572 (177.5 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1716 bytes 177572 (177.5 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500
inet 10.8.0.8 netmask 255.255.255.0 destination 10.8.0.8
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 100 (UNSPEC)
RX packets 26496 bytes 18565737 (18.5 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 22007 bytes 2249842 (2.2 MB)
TX errors 0 dropped 27 overruns 0 carrier 0 collisions 0

wlp0s20f3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.12 netmask 255.255.255.0 broadcast 192.168.0.255
ether 38:00:25:8b:44:0d txqueuelen 1000 (Ethernet)
RX packets 40735 bytes 23738641 (23.7 MB)
RX errors 0 dropped 2 overruns 0 frame 0
TX packets 22393 bytes 4375616 (4.3 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
 
Old 03-10-2021, 07:42 PM   #20
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,814

Rep: Reputation: 5959Reputation: 5959Reputation: 5959Reputation: 5959Reputation: 5959Reputation: 5959Reputation: 5959Reputation: 5959Reputation: 5959Reputation: 5959Reputation: 5959
Are you using a VPN service?
Code:
tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500
inet 10.8.0.8 netmask 255.255.255.0 destination 10.8.0.8
 
1 members found this post helpful.
Old 03-10-2021, 09:53 PM   #21
Muzzah
LQ Newbie
 
Registered: Mar 2021
Posts: 16

Original Poster
Rep: Reputation: Disabled
Oops, posted my last post without seeing the previous posts on page 2.
Yes, NordVPN. Tried disconnecting before starting this thread but that didn't seem to make any difference. Maybe if I uninstalled the software too.
 
Old 03-10-2021, 11:33 PM   #22
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,855

Rep: Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149
After disconnecting, you could just flush the tables
Code:
sudo iptables -F
 
1 members found this post helpful.
Old 03-11-2021, 02:33 AM   #23
Muzzah
LQ Newbie
 
Registered: Mar 2021
Posts: 16

Original Poster
Rep: Reputation: Disabled
Okay, here's where I'm up to. Disconnected NordVPN, then ran
Quote:
sudo iptables -F
. This killed my internet connection. I disabled NordVPN in autostart and rebooted. Internet is back. Ping now returns:

rjh@rjh-NUC8i5BEH:~$ ping 192.168.0.14
PING 192.168.0.14 (192.168.0.14) 56(84) bytes of data.
64 bytes from 192.168.0.14: icmp_seq=1 ttl=255 time=585 ms
64 bytes from 192.168.0.14: icmp_seq=2 ttl=255 time=454 ms
^C
--- 192.168.0.14 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 454.013/519.619/585.226/65.606 ms

Skanlite can now find the scanner and make scans. The printer still doesn't print though. A test page from the printer dialogue or pages from Libreoffice writer appear briefly in the print queue, spool, then disappear. No error messages at the pc end or on the printer, but nothing happens. Rebooted printer, checked that a windows pc can still print to it. Am scratching my head and trying to figure out what to do next. Try diferent connection in CUPS maybe?

As to where 192.168.0.14 is in my network setup I have no idea. Is there a command that would return this?

Thanks very much for all the help by the way.
 
Old 03-11-2021, 02:58 AM   #24
Muzzah
LQ Newbie
 
Registered: Mar 2021
Posts: 16

Original Poster
Rep: Reputation: Disabled
Re where the printer is in the network setup this is my best effort so far.

Quote:
rjh@rjh-NUC8i5BEH:~$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eno1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
link/ether 1c:69:7a:0d:83:11 brd ff:ff:ff:ff:ff:ff
altname enp0s31f6
3: wlp0s20f3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 38:00:25:8b:44:0d brd ff:ff:ff:ff:ff:ff
inet 192.168.0.12/24 brd 192.168.0.255 scope global dynamic noprefixroute wlp0s20f3
valid_lft 81832sec preferred_lft 81832sec
inet6 2001:8003:6051:9d01:4bf8:ad09:2d47:5d11/64 scope global temporary dynamic
valid_lft 4769sec preferred_lft 4769sec
inet6 2001:8003:6051:9d01:69a0:d762:3b9a:f16/64 scope global dynamic mngtmpaddr noprefixroute
valid_lft 4769sec preferred_lft 4769sec
inet6 fe80::67f:3ffc:f2df:efa7/64 scope link noprefixroute
valid_lft forever preferred_lft forever
Quote:
rjh@rjh-NUC8i5BEH:~$ ip route
default via 192.168.0.1 dev wlp0s20f3 proto dhcp metric 600
169.254.0.0/16 dev wlp0s20f3 scope link metric 1000
192.168.0.0/24 dev wlp0s20f3 proto kernel scope link src 192.168.0.12 metric 600
And where the printer (192.168.0.14) sits in all this:

Quote:
rjh@rjh-NUC8i5BEH:~$ ip route get 192.168.0.14
192.168.0.14 dev wlp0s20f3 src 192.168.0.12 uid 1000
cache
 
Old 03-11-2021, 03:10 AM   #25
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,814

Rep: Reputation: 5959Reputation: 5959Reputation: 5959Reputation: 5959Reputation: 5959Reputation: 5959Reputation: 5959Reputation: 5959Reputation: 5959Reputation: 5959Reputation: 5959
The printer's panel should be able to show its ip address or print a status/configuration page with the desired information.
 
1 members found this post helpful.
Old 03-11-2021, 03:37 AM   #26
Muzzah
LQ Newbie
 
Registered: Mar 2021
Posts: 16

Original Poster
Rep: Reputation: Disabled
Hooray - it works! I assume it was NordVPN causing the problem. Now when I go into the CUPS interface and begin to modify the printer it recognises the printer sitting there, recommends a connection, (ipp://Brother%20MFC-J5330DW._ipp._tcp.local/) recommends a driver and sets the whole thing up.

This all makes sense now as I turn my VPN on and off a fair bit - on if I think I'm doing something dodgy, off if I want to watch streaming sport (which doesn't work if you have a VPN running).

For anyone trying to follow this the trick seems to be that the computer had to be restarted after disabling NordVPN for the printer to work again. Then it probably would have printed if not for a printer connection change I made along the way.

Assuming the printer stays fixed this time I just need to figure out how to run my VPN without it messing up the network, but that's probably better left for another thread if it comes to that.

To those who helped many thanks again. Anything else I should note for others before marking this as solved?
 
Old 03-11-2021, 03:40 AM   #27
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,855

Rep: Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149
Quote:
Originally Posted by Muzzah View Post
Skanlite can now find the scanner and make scans. The printer still doesn't print though. A test page from the printer dialogue or pages from Libreoffice writer appear briefly in the print queue, spool, then disappear. No error messages at the pc end or on the printer, but nothing happens.
This could be due to an incorrect driver.

Post the output from
Code:
sudo egrep -i "filter|model" /etc/cups/ppd/*
 
Old 03-11-2021, 03:44 AM   #28
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,855

Rep: Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149
Thanks for the update. Good to know that the printer is working as expected. Check the route table after the VPN is disabled. Sometimes stale routes can cause issues.
 
Old 03-11-2021, 03:59 AM   #29
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,814

Rep: Reputation: 5959Reputation: 5959Reputation: 5959Reputation: 5959Reputation: 5959Reputation: 5959Reputation: 5959Reputation: 5959Reputation: 5959Reputation: 5959Reputation: 5959
The VPN when connected will route all traffic through the tunnel and not the LAN so accessing local devices does not work. Using split tunneling will allow both.
 
Old 03-11-2021, 06:56 AM   #30
Muzzah
LQ Newbie
 
Registered: Mar 2021
Posts: 16

Original Poster
Rep: Reputation: Disabled
output of sudo egrep -i "filter|model" /etc/cups/ppd/*:

Quote:
rjh@rjh-NUC8i5BEH:~$ sudo egrep -i "filter|model" /etc/cups/ppd/*
[sudo] password for rjh:
*ModelName: "Brother MFC-J5330DW"
*NickName: "Brother MFC-J5330DW, driverless, cups-filters 1.27.4"
*cupsFilter2: "image/urf image/urf 100 -"
*cupsFilter2: "image/jpeg image/jpeg 0 -"
*OpenUI *ColorModel/Print Color Mode: PickOne
*OrderDependency: 10 AnySetup *ColorModel
*ColorModel RGB/Color: "<</cupsColorSpace 19/cupsBitsPerColor 8/cupsColorOrder 0/cupsCompression 0>>setpagedevice"
*ColorModel Gray/Monochrome: "<</cupsColorSpace 18/cupsBitsPerColor 8/cupsColorOrder 0/cupsCompression 0>>setpagedevice"
*DefaultColorModel: RGB
*CloseUI: *ColorModel
As far as I can tell this is the appropriate driver. It never really seemed like this would be a driver issue since it worked perfectly when it did work.

The route table is currently

Quote:
rjh@rjh-NUC8i5BEH:~$ ip route
default via 192.168.0.1 dev wlp0s20f3 proto dhcp metric 600
169.254.0.0/16 dev wlp0s20f3 scope link metric 1000
192.168.0.0/24 dev wlp0s20f3 proto kernel scope link src 192.168.0.12 metric 600
but unfortunately I don't know if anything there is stale. (I've spent hours reading about networking over the last couple of days but I'm finding it a bit impenetrable. Even "basic" tutorials quickly lose me. Also I suspect some of the terminology is interchangeable so what they say to do in a how-to doesn't match what you see in your own settings. I suspect it takes a fair bit of concerted study to get on top of all this stuff.)

Re split tunneling I'll do some research but that sounds rather black-belt.

One last thing, I assume it would be appropriate to edit the title of this thread to better reflect that it relates primarily to VPN issues. And should it be moved to networking maybe?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Wicd Could not connect to wicd's D-Bus interface GreenFireFly Slackware 6 04-29-2019 12:48 PM
Installing a Brother Printer MFC-J5330DW edhayes@tmp-az.com Linux Mint 11 02-27-2018 03:58 PM
[SOLVED] wicd or wicd-gtk problem Altoid Linux - Software 2 07-12-2017 09:03 AM
[SOLVED] Why `systemctl disable wicd.service`can't disable wicd ? luofeiyu Linux - Newbie 5 08-24-2016 11:54 AM
WICD tray icon says not connected, WICD manager says conneted to wired network?!?! intheshadows Linux - Newbie 1 12-24-2009 12:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration