You are not logged in.
Pages: 1
➜ ~ ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
^C
--- 127.0.0.1 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3052ms
➜ ~ ping -c2 -W1 192.168.1.27
PING 192.168.1.27 (192.168.1.27) 56(84) bytes of data.
--- 192.168.1.27 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1010ms
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
2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 1c:1b:0d:8e:3e:7c brd ff:ff:ff:ff:ff:ff
inet 192.168.1.27/24 brd 192.168.1.255 scope global noprefixroute enp3s0
valid_lft forever preferred_lft forever
3: vboxnet0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 0a:00:27:00:00:00 brd ff:ff:ff:ff:ff:ff
➜ ~ ping -c4 -W1 192.168.1.80
PING 192.168.1.80 (192.168.1.80) 56(84) bytes of data.
64 bytes from 192.168.1.80: icmp_seq=1 ttl=64 time=0.182 ms
64 bytes from 192.168.1.80: icmp_seq=2 ttl=64 time=0.180 ms
64 bytes from 192.168.1.80: icmp_seq=3 ttl=64 time=0.197 ms
64 bytes from 192.168.1.80: icmp_seq=4 ttl=64 time=0.179 ms
--- 192.168.1.80 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3039ms
rtt min/avg/max/mdev = 0.179/0.184/0.197/0.007 msLast edited by sevk (2023-03-13 08:52:12)
Offline
Post your output from
$ip a s lo .
Probably your loopback device is not configured correctly.
EDIT: Forgot to add the "s" switch, thanks seth.
Last edited by Grigorios (2023-03-13 09:20:16)
Offline
That'll only get you "Command "lo" is unknown"
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 2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether 1c:1b:0d:8e:3e:7c brd ff:ff:ff:ff:ff:ff inet 192.168.1.27/24 brd 192.168.1.255 scope global noprefixroute enp3s0 valid_lft forever preferred_lft forever 3: vboxnet0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether 0a:00:27:00:00:00 brd ff:ff:ff:ff:ff:ff
There's also no response on the LAN IP, => firewall?
Online
➜ ~ systemctl| grep -E "ipt|ufw|wall|fire"
UNIT LOAD ACTIVE SUB DESCRIPTION
systemd-ask-password-wall.path loaded active waiting Forward Password Requests to Wall Directory Watch
iptables.service loaded active exited IPv4 Packet Filtering Framework
➜ ~ sudo systemctl stop iptables.service
➜ ~ sudo systemctl disable iptables.service
Removed "/etc/systemd/system/multi-user.target.wants/iptables.service".
➜ ~ sudo systemctl status iptables.service
○ iptables.service - IPv4 Packet Filtering Framework
Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled; preset: disabled)
Active: inactive (dead)
➜ ~ ping -c2 -W1 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
--- 127.0.0.1 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1025msThat'll only get you "Command "lo" is unknown"
Also the OP wrote: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 2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether 1c:1b:0d:8e:3e:7c brd ff:ff:ff:ff:ff:ff inet 192.168.1.27/24 brd 192.168.1.255 scope global noprefixroute enp3s0 valid_lft forever preferred_lft forever 3: vboxnet0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether 0a:00:27:00:00:00 brd ff:ff:ff:ff:ff:ffThere's also no response on the LAN IP, => firewall?
Last edited by sevk (2023-03-13 08:45:42)
Offline
➜ ~ ip -a -s -h a
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
RX: bytes packets errors dropped missed mcast
25.5k 271 0 0 0 0
TX: bytes packets errors dropped carrier collsns
25.5k 271 0 0 0 0
2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 1c:1b:0d:8e:3e:7c brd ff:ff:ff:ff:ff:ff
inet 192.168.1.27/24 brd 192.168.1.255 scope global noprefixroute enp3s0
valid_lft forever preferred_lft forever
RX: bytes packets errors dropped missed mcast
19.0G 28.0M 0 477 0 1.17M
TX: bytes packets errors dropped carrier collsns
1.83G 11.4M 0 0 0 0
3: vboxnet0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 0a:00:27:00:00:00 brd ff:ff:ff:ff:ff:ff
RX: bytes packets errors dropped missed mcast
0 0 0 0 0 0
TX: bytes packets errors dropped carrier collsns
0 0 0 0 0 0
➜ ~ ifconfig lo
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 271 bytes 25489 (24.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 271 bytes 25489 (24.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0Post your output from
$ip a lo.
Probably your loopback device is not configured correctly.
Last edited by sevk (2023-03-10 02:06:47)
Offline
Please don't top-post.
➜ ~ sudo systemctl stop iptables.service
➜ ~ sudo systemctl disable iptables.service
This will not void any exisiting entries, https://wiki.archlinux.org/title/Iptabl … mmand_line
Online
➜ ~ cat 1.sh
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -t raw -F
iptables -t raw -X
iptables -t security -F
iptables -t security -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
sudo iptables -nvL
ping -c2 -W1 127.0.0.1
ping -c2 -W1 192.168.1.27
ping -c2 -W1 192.168.1.80
➜ ~ sudo sh 1.sh
iptables v1.8.9 (legacy): can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.8.9 (legacy): can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.8.9 (legacy): can't initialize iptables table `mangle': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.8.9 (legacy): can't initialize iptables table `mangle': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.8.9 (legacy): can't initialize iptables table `raw': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.8.9 (legacy): can't initialize iptables table `raw': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.8.9 (legacy): can't initialize iptables table `security': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.8.9 (legacy): can't initialize iptables table `security': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
--- 127.0.0.1 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1004ms
PING 192.168.1.27 (192.168.1.27) 56(84) bytes of data.
--- 192.168.1.27 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1023ms
PING 192.168.1.80 (192.168.1.80) 56(84) bytes of data.
64 bytes from 192.168.1.80: icmp_seq=1 ttl=64 time=0.172 ms
64 bytes from 192.168.1.80: icmp_seq=2 ttl=64 time=0.154 ms
--- 192.168.1.80 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1023ms
rtt min/avg/max/mdev = 0.154/0.163/0.172/0.009 msLast edited by sevk (2023-03-13 08:06:45)
Offline
Please don't top-post.
https://en.wikipedia.org/wiki/Posting_style#Top-posting
You doN't have to quote every nonsense at all.
This is getting into the territory where you or whoever maintains this system deliberately counteracted this:
sudo sysctl -a | grep -i icmpOnline
➜ ~ sudo sysctl -a | grep -i icmp
net.ipv4.icmp_echo_enable_probe = 0
net.ipv4.icmp_echo_ignore_all = 1
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.icmp_errors_use_inbound_ifaddr = 0
net.ipv4.icmp_ignore_bogus_error_responses = 1
net.ipv4.icmp_msgs_burst = 50
net.ipv4.icmp_msgs_per_sec = 1000
net.ipv4.icmp_ratelimit = 1000
net.ipv4.icmp_ratemask = 6168
net.netfilter.nf_conntrack_icmp_timeout = 30
net.netfilter.nf_conntrack_icmpv6_timeout = 30
➜ ~ cat /etc/sysctl.conf
net.ipv4.tcp_rfc1337=1Last edited by sevk (2023-03-13 08:03:20)
Offline
The answer is obvious and in your last post, but unless you go over *all* your posts and remove the fucking top-post quotes, you'll have to figure it yourself.
Online
top-post quotes has deleted
Offline
Well, mostly. But I'll acknowledge the effort.
net.ipv4.icmp_echo_ignore_all = 1This is not the default value and explains why you're not getting icmp echos from the system.
Settig it to "0" will immediately allow you to ping the system.
sudo sysctl net.ipv4.icmp_echo_ignore_all=0Doesn't explain where it's coming from, but looking at /etc/sysctl.d/* will be a good idea.
Edit: typos, sysctl command
Last edited by seth (2023-03-13 08:17:33)
Online
➜ sysctl.d ls -al
total 16
drwxr-xr-x 2 root root 4096 Apr 9 2018 .
drwxr-xr-x 143 root root 12288 Mar 13 15:49 ..
➜ sysctl.d sudo sysctl net.ipv4.icmp_echo_ignore_all=0
net.ipv4.icmp_echo_ignore_all = 0
➜ sysctl.d ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.028 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.032 ms
^C
--- 127.0.0.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1013ms
rtt min/avg/max/mdev = 0.028/0.030/0.032/0.002 msLast edited by sevk (2023-03-13 08:46:04)
Offline
Online
thanks
Offline
Pages: 1