Skip to content

Instantly share code, notes, and snippets.

@cjac
Created May 28, 2024 13:33
Show Gist options
  • Save cjac/26ffb7ca250c4f2cbf300b2f727285c3 to your computer and use it in GitHub Desktop.
Save cjac/26ffb7ca250c4f2cbf300b2f727285c3 to your computer and use it in GitHub Desktop.
tcpdump output:
06:32:35.983734 IP 192.0.2.184 > 192.0.2.1: ICMP echo request, id 24995, seq 1, length 64
06:32:35.984207 IP 192.0.2.1 > 192.0.2.184: ICMP echo reply, id 24995, seq 1, length 64
06:32:37.003656 IP 192.0.2.184 > 192.0.2.1: ICMP echo request, id 24995, seq 2, length 64
06:32:37.004128 IP 192.0.2.1 > 192.0.2.184: ICMP echo reply, id 24995, seq 2, length 64
ping output:
ping 192.0.2.1
PING 192.0.2.1 (192.0.2.1) 56(84) bytes of data.
^C
--- 192.0.2.1 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1020ms
@cjac
Copy link
Author

cjac commented May 28, 2024

cjac@edge:$ sudo shorewall stop
Stopping Shorewall....
Preparing iptables-restore input...
Running /sbin/iptables-restore --wait 60...
IPv4 Forwarding Enabled
done.
cjac@edge:$ ping 192.0.2.1
PING 192.0.2.1 (192.0.2.1) 56(84) bytes of data.
64 bytes from 192.0.2.1: icmp_seq=1 ttl=64 time=0.492 ms
64 bytes from 192.0.2.1: icmp_seq=2 ttl=64 time=0.450 ms
64 bytes from 192.0.2.1: icmp_seq=3 ttl=64 time=0.470 ms
^C
--- 192.0.2.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2051ms
rtt min/avg/max/mdev = 0.450/0.470/0.492/0.017 ms
cjac@edge:$ sudo shorewall start
Starting Shorewall....
Initializing...
Setting up Route Filtering...
Setting up Martian Logging...
Preparing iptables-restore input...
Running /sbin/iptables-restore --wait 60...
IPv4 Forwarding Enabled
done.
cjac@edge:$ ping -w2 -c2 192.0.2.1
PING 192.0.2.1 (192.0.2.1) 56(84) bytes of data.

--- 192.0.2.1 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1029ms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment