No, it is not a common occurrence for a port or pkg that does not come with the Base System to show up on your machine if you did not install it.How would I ever know that?? Is this a fairly common occurence? Is so, it defeats any attempt to avoid the mixed problem.
What I meant was if you were not around to tell me Are these anomolies documented anywhere in FBSD, so I don't have to rely on you ie., if I really want to stick to packages not ports?You would know that because I told you?
Hui. That's no command to execute - a "URL" is something you can f.e. use to feed a webbrowser with. Also note that "localhost" could mean you have to replace it by the IP address of that computer, and/or you might have to add "http://" in front of it (whoever knows what you're using as webbrowser); You've been asked to open the website of the computer cups is running on, and that in toplevel and port 631.
That is completely wrong. Please re-read my post. I explicitly said, become root, and:Code:[QUOTE="gpw928, post: 503841, member: 13095"] The "nmap not found" diagnostic can't happen if the instructions provided above (become root, install the packages, execute /bin/sh, set PATH) were followed. In any event, that's of no particular consequence, because [MAN=8]lsof[/MAN] has identified that [MAN=8]cupsd[/MAN] is running, and listening on port 631. You must now determine why your web browser can't connect to the URL "http://localhost:631". The impact of packet filtering must be addressed. I would not normally expect to see packet filtering without a really good reason. I suggest you follow the suggestions made by [USER=30996]Trihexagonal[/USER], though you may wish to consider removing the packet filtering completely as they may impact your network connections in ways that will be confounding. [/QUOTE]
pkg install lsof nmap
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
[root@Mistletoe ~]# pkg install lsof nmap
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to
All I meant, in shorthand, was that I executed the code at rootHui. That's no command to execute - a "URL" is something you can f.e. use to feed a webbrowser with. Also note that "localhost" could mean you have to replace it by the IP address of that computer, and/or you might have to add "http://" in front of it (whoever knows what you're using as webbrowser); You've been asked to open the website of the computer cups is running on, and that in toplevel and port 631.
Ok, here's a suggestion:
All output and all command you perform to diagnose this issue are to be wrapped in a program called script. This logs everything you do on the keyboard and output of the terminal screen so that you can then post this output to the forums and we can stop guessing at what you're seeing.
So, can you perform the following (as root, just in case):
Start up a terminal session (xterm, whatever).
Code:cd ~ script output.txt ps aux|grep cups exit
This will change directory to your home, runscript
with output to output.txt and then run theps
command searching for cups in the output ofps
.
Finally we exit the script program.
Then post the file output.txt to this forum.
Then we will move onto the next step in the solution.
root@Mistletoe:~ # ps aux |grep cups
root 1398 0.0 0.1 4812 2260 1 S+ 14:40 0:00.00 grep cups
root@Mistletoe:~ # exit
Script done on Fri Apr 2 14:42:52 2021
Here is my output for ifconf -a but I can't find pf.config in the directoriesIf you didn't put them there, who did? Not me...
You have a spelling error in line 2:
Code:pf_rules="/etc/pf.conf"
Here it is. Your network interface may be different. Run this to find out what it is:
jitte@bakemono:~ $ ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=81249b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LRO,WOL_MAGIC,VLAN_HWFILTER>
ether b0:0b:de:ad:b0:0b
inet 192.168.1.34 netmask 0xffffff00 broadcast 192.168.1.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
pflog0: flags=141<UP,RUNNING,PROMISC> metric 0 mtu 33160
groups: pflog
jitte@bakemono:~ $
Mine is em0. What's yours? Whatever it is use that on the 4th line of the following pf ruleset where it says:
Code:ext_if = "em0"
Where mine shows:
Code:inet 192.168.1.34
Use what yours shows in the table instead of 192.168.1.34
Fix your spelling error first. Then open your ruleset, save it as pf.conf.old somewhere of your choosing and replace it with this:
/etc/pf.conf
Code:### CUPS_pf_rules_included ### Macro name for external interface ext_if = "em0" netbios_tcp = "{ 22, 23, 25, 110, 111, 123, 512, 513, 514, 515, 6000, 6010 }" netbios_udp = "{ 123, 512, 513, 514, 515, 5353, 6000, 6010 }" ### Allow CUPS to use tcp ports 80 and udp port 631 cups_tcp = "{ 80, 631 }" cups_udp = "{ 631 }" ### Allow CUPS to be accessible (change to your other machines ifconfig -a LAN designation ) table <local> { 192.168.0.34 } ### Reassemble fragmented packets scrub in on $ext_if all fragment reassemble ### Default deny everything block log all ### Pass loopback set skip on lo0 ### Allow LAN to talk to CUPS on your machine pass in log quick from <local> to any keep state ### Block spooks antispoof for lo0 antispoof for $ext_if inet block in from no-route to any block in from urpf-failed to any block in quick on $ext_if from any to 255.255.255.255 block in log quick on $ext_if from { 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 255.255.255.255/32 } to any ### Block all IPv6 block in quick inet6 all block out quick inet6 all ### Block to and from port 0 block quick proto { tcp, udp } from any port = 0 to any block quick proto { tcp, udp } from any to any port = 0 ### Block specific ports block in quick log on $ext_if proto tcp from any to any port $netbios_tcp block in quick log on $ext_if proto udp from any to any port $netbios_udp ### Allow CUPS to talk to clients on LAN pass out log on $ext_if proto tcp to any port $cups_tcp keep state pass out log on $ext_if proto udp to any port $cups_udp keep state ### Keep and modulate state of outbound tcp, udp and icmp traffic pass out on $ext_if proto { tcp, udp, icmp } from any to any modulate state
Then save that as /etc/pf.conf, reboot and tell us what happens next time you try.
root@Mistletoe:~ # ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=81049b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LRO,VLAN_HWFILTER>
ether 00:d8:61:58:00:d0
inet [COLOR=rgb(44, 130, 201)]192.168.1.104 [/COLOR]netmask 0xffffff00 broadcast 192.168.1.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
pflog0: flags=141<UP,RUNNING,PROMISC> metric 0 mtu 33184
groups: pflog
Here is my ifconfig -a, but I can't find the directory for pf.configIf you didn't put them there, who did? Not me...
You have a spelling error in line 2:
Code:pf_rules="/etc/pf.conf"
Here it is. Your network interface may be different. Run this to find out what it is:
jitte@bakemono:~ $ ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=81249b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LRO,WOL_MAGIC,VLAN_HWFILTER>
ether b0:0b:de:ad:b0:0b
inet 192.168.1.34 netmask 0xffffff00 broadcast 192.168.1.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
pflog0: flags=141<UP,RUNNING,PROMISC> metric 0 mtu 33160
groups: pflog
jitte@bakemono:~ $
Mine is em0. What's yours? Whatever it is use that on the 4th line of the following pf ruleset where it says:
Code:ext_if = "em0"
Where mine shows:
Code:inet 192.168.1.34
Use what yours shows in the table instead of 192.168.1.34
Fix your spelling error first. Then open your ruleset, save it as pf.conf.old somewhere of your choosing and replace it with this:
/etc/pf.conf
Code:### CUPS_pf_rules_included ### Macro name for external interface ext_if = "em0" netbios_tcp = "{ 22, 23, 25, 110, 111, 123, 512, 513, 514, 515, 6000, 6010 }" netbios_udp = "{ 123, 512, 513, 514, 515, 5353, 6000, 6010 }" ### Allow CUPS to use tcp ports 80 and udp port 631 cups_tcp = "{ 80, 631 }" cups_udp = "{ 631 }" ### Allow CUPS to be accessible (change to your other machines ifconfig -a LAN designation ) table <local> { 192.168.0.34 } ### Reassemble fragmented packets scrub in on $ext_if all fragment reassemble ### Default deny everything block log all ### Pass loopback set skip on lo0 ### Allow LAN to talk to CUPS on your machine pass in log quick from <local> to any keep state ### Block spooks antispoof for lo0 antispoof for $ext_if inet block in from no-route to any block in from urpf-failed to any block in quick on $ext_if from any to 255.255.255.255 block in log quick on $ext_if from { 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 255.255.255.255/32 } to any ### Block all IPv6 block in quick inet6 all block out quick inet6 all ### Block to and from port 0 block quick proto { tcp, udp } from any port = 0 to any block quick proto { tcp, udp } from any to any port = 0 ### Block specific ports block in quick log on $ext_if proto tcp from any to any port $netbios_tcp block in quick log on $ext_if proto udp from any to any port $netbios_udp ### Allow CUPS to talk to clients on LAN pass out log on $ext_if proto tcp to any port $cups_tcp keep state pass out log on $ext_if proto udp to any port $cups_udp keep state ### Keep and modulate state of outbound tcp, udp and icmp traffic pass out on $ext_if proto { tcp, udp, icmp } from any to any modulate state
Then save that as /etc/pf.conf, reboot and tell us what happens next time you try.
root@Mistletoe:~ # ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=81049b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LRO,VLAN_HWFILTER>
ether 00:d8:61:58:00:d0
inet 192.168.1.104 netmask 0xffffff00 broadcast 192.168.1.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
pflog0: flags=141<UP,RUNNING,PROMISC> metric 0 mtu 33184
groups: pflog
Here is my ifconfig -a, but I can't find the directory for pf.config
What? You ran "ps aux|grep cups", it says so above. Cupsd is not running or it would be listed.Script started on Fri Apr 2 14:39:31 2021
root@Mistletoe:~ # ps aux |grep cups
Code:root 1398 0.0 0.1 4812 2260 1 S+ 14:40 0:00.00 grep cups root@Mistletoe:~ # exit Script done on Fri Apr 2 14:42:52 2021
I'm not sure how to execute the ps part of your instruction. Help please.
script cups.txt
truss -p {pid_from_ps_command}
I don't have any /etc/pf.conf to start with. Is that normal?If you didn't put them there, who did? Not me...
You have a spelling error in line 2:
Code:pf_rules="/etc/pf.conf"
Here it is. Your network interface may be different. Run this to find out what it is:
jitte@bakemono:~ $ ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=81249b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LRO,WOL_MAGIC,VLAN_HWFILTER>
ether b0:0b:de:ad:b0:0b
inet 192.168.1.34 netmask 0xffffff00 broadcast 192.168.1.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
pflog0: flags=141<UP,RUNNING,PROMISC> metric 0 mtu 33160
groups: pflog
jitte@bakemono:~ $
Mine is em0. What's yours? Whatever it is use that on the 4th line of the following pf ruleset where it says:
Code:ext_if = "em0"
Where mine shows:
Code:inet 192.168.1.34
Use what yours shows in the table instead of 192.168.1.34
Fix your spelling error first. Then open your ruleset, save it as pf.conf.old somewhere of your choosing and replace it with this:
/etc/pf.conf
Code:### CUPS_pf_rules_included ### Macro name for external interface ext_if = "em0" netbios_tcp = "{ 22, 23, 25, 110, 111, 123, 512, 513, 514, 515, 6000, 6010 }" netbios_udp = "{ 123, 512, 513, 514, 515, 5353, 6000, 6010 }" ### Allow CUPS to use tcp ports 80 and udp port 631 cups_tcp = "{ 80, 631 }" cups_udp = "{ 631 }" ### Allow CUPS to be accessible (change to your other machines ifconfig -a LAN designation ) table <local> { 192.168.1.104 } ### Reassemble fragmented packets scrub in on $ext_if all fragment reassemble ### Default deny everything block log all ### Pass loopback set skip on lo0 ### Allow LAN to talk to CUPS on your machine pass in log quick from <local> to any keep state ### Block spooks antispoof for lo0 antispoof for $ext_if inet block in from no-route to any block in from urpf-failed to any block in quick on $ext_if from any to 255.255.255.255 block in log quick on $ext_if from { 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 255.255.255.255/32 } to any ### Block all IPv6 block in quick inet6 all block out quick inet6 all ### Block to and from port 0 block quick proto { tcp, udp } from any port = 0 to any block quick proto { tcp, udp } from any to any port = 0 ### Block specific ports block in quick log on $ext_if proto tcp from any to any port $netbios_tcp block in quick log on $ext_if proto udp from any to any port $netbios_udp ### Allow CUPS to talk to clients on LAN pass out log on $ext_if proto tcp to any port $cups_tcp keep state pass out log on $ext_if proto udp to any port $cups_udp keep state ### Keep and modulate state of outbound tcp, udp and icmp traffic pass out on $ext_if proto { tcp, udp, icmp } from any to any modulate state
Then save that as /etc/pf.conf, reboot and tell us what happens next time you try.
Unfortunately that didn't work. Why is the resultant output refering to pid 1367?What? You ran "ps aux|grep cups", it says so above. Cupsd is not running or it would be listed.
Start cupsd, re-run the above and using the second column (after root), which is the PID, do the following:
Open a terminal session and type this:
Code:script cups.txt truss -p {pid_from_ps_command}
Then while that is running, from firefox or whatever, type: http://localhost:631
Wait for it. Refresh if need be.
Finally, go back to the terminal session running truss and exit.
Post the file cups.txt
root@Mistletoe:~ # ps aux |grep cups
root 1362 0.0 0.1 4812 2260 0 S+ 21:40 0:00.00 grep cups
root@Mistletoe:~ # script cups.txt
Script started, output file is cups.txt
root@Mistletoe:~ # truss 1362
truss: execvp 1362: No such file or directory
truss: Unable to enable LWP events for pid 1367: No such process
truss:: Too many arguments.
Thank you. With your recommended inclusions in /etc/pf/conf I now have access to localhost:631 version 2.3.3.If you didn't put them there, who did? Not me...
You have a spelling error in line 2:
Code:pf_rules="/etc/pf.conf"
Here it is. Your network interface may be different. Run this to find out what it is:
jitte@bakemono:~ $ ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=81249b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LRO,WOL_MAGIC,VLAN_HWFILTER>
ether b0:0b:de:ad:b0:0b
inet 192.168.1.34 netmask 0xffffff00 broadcast 192.168.1.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
pflog0: flags=141<UP,RUNNING,PROMISC> metric 0 mtu 33160
groups: pflog
jitte@bakemono:~ $
Mine is em0. What's yours? Whatever it is use that on the 4th line of the following pf ruleset where it says:
Code:ext_if = "em0"
Where mine shows:
Code:inet 192.168.1.34
Use what yours shows in the table instead of 192.168.1.34
Fix your spelling error first. Then open your ruleset, save it as pf.conf.old somewhere of your choosing and replace it with this:
/etc/pf.conf
Code:### CUPS_pf_rules_included ### Macro name for external interface ext_if = "em0" netbios_tcp = "{ 22, 23, 25, 110, 111, 123, 512, 513, 514, 515, 6000, 6010 }" netbios_udp = "{ 123, 512, 513, 514, 515, 5353, 6000, 6010 }" ### Allow CUPS to use tcp ports 80 and udp port 631 cups_tcp = "{ 80, 631 }" cups_udp = "{ 631 }" ### Allow CUPS to be accessible (change to your other machines ifconfig -a LAN designation ) table <local> { 192.168.1.104 } ### Reassemble fragmented packets scrub in on $ext_if all fragment reassemble ### Default deny everything block log all ### Pass loopback set skip on lo0 ### Allow LAN to talk to CUPS on your machine pass in log quick from <local> to any keep state ### Block spooks antispoof for lo0 antispoof for $ext_if inet block in from no-route to any block in from urpf-failed to any block in quick on $ext_if from any to 255.255.255.255 block in log quick on $ext_if from { 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 255.255.255.255/32 } to any ### Block all IPv6 block in quick inet6 all block out quick inet6 all ### Block to and from port 0 block quick proto { tcp, udp } from any port = 0 to any block quick proto { tcp, udp } from any to any port = 0 ### Block specific ports block in quick log on $ext_if proto tcp from any to any port $netbios_tcp block in quick log on $ext_if proto udp from any to any port $netbios_udp ### Allow CUPS to talk to clients on LAN pass out log on $ext_if proto tcp to any port $cups_tcp keep state pass out log on $ext_if proto udp to any port $cups_udp keep state ### Keep and modulate state of outbound tcp, udp and icmp traffic pass out on $ext_if proto { tcp, udp, icmp } from any to any modulate state
Then save that as /etc/pf.conf, reboot and tell us what happens next time you try.
root@Mistletoe:~ # ps aux |grep cups
root 1363 0.0 0.1 4456 1988 0 S+ 21:41 0:00.02 script cups
root 1397 0.0 0.1 4812 2260 2 S+ 21:52 0:00.00 grep cups
ps aux | grep cups
doesn't return an output similar below, then cupsd isn't running.root 1557 0.0 0.2 28680 8008 - Is 11:14 0:00.01 /usr/local/sbin/cupsd -C /usr/local/etc/cups/cupsd.conf -s /usr/local/etc/cups/cups-files.conf
localhost:631
.cat /etc/rc.conf
file /etc/rc.conf
I have never upgraded from one RELEASE version to the next step and always do a full rebuild of the System from ground up. That way I know what I'm going to get every time and that's a rock-solid FreeBSD desktop.So why is it said, in certain quarters, that mixing both might have a negative impact on upgrades? I suppose it's no big deal if you are competent to find errors on such occasions, upgrade errors that might be deep seated & hard to find.
Can you give an insight of how you go about that?I have never upgraded from one RELEASE version to the next step and always do a full rebuild of the System from ground up. That way I know what I'm going to get every time and that's a rock-solid FreeBSD desktop.