Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # iptables -F
- # iptables -t nat -F
- # iptables -t mangle -F
- # ping 192.168.5.1
- PING 192.168.5.1 (192.168.5.1) 56(84) bytes of data.
- From 192.168.5.15 icmp_seq=1 Destination Host Unreachable
- From 192.168.5.15 icmp_seq=2 Destination Host Unreachable
- From 192.168.5.15 icmp_seq=3 Destination Host Unreachable
- From 192.168.5.15 icmp_seq=4 Destination Host Unreachable
- ^C
- --- 192.168.5.1 ping statistics ---
- 4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 3000ms
- pipe 4
- # ifconfig
- enp2s8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
- inet 192.168.5.15 netmask 255.255.255.0 broadcast 192.168.5.255
- inet6 fe80::211:95ff:fe65:e600 prefixlen 64 scopeid 0x20<link>
- ether 00:11:95:65:e6:00 txqueuelen 1000 (Ethernet)
- RX packets 0 bytes 0 (0.0 B)
- RX errors 0 dropped 218103795 overruns 0 frame 0
- TX packets 0 bytes 0 (0.0 B)
- TX errors 0 dropped 194 overruns 0 carrier 0 collisions 0
- lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
- inet 127.0.0.1 netmask 255.0.0.0
- inet6 ::1 prefixlen 128 scopeid 0x10<host>
- loop txqueuelen 0 (Local Loopback)
- RX packets 173 bytes 17372 (16.9 KiB)
- RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 173 bytes 17372 (16.9 KiB)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
- inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
- ether 0a:66:48:d3:b3:05 txqueuelen 0 (Ethernet)
- RX packets 0 bytes 0 (0.0 B)
- RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 1 bytes 90 (90.0 B)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- # iptables -nL
- Chain INPUT (policy ACCEPT)
- target prot opt source destination
- Chain FORWARD (policy ACCEPT)
- target prot opt source destination
- Chain OUTPUT (policy ACCEPT)
- target prot opt source destination
- Chain FORWARD_IN_ZONES (0 references)
- target prot opt source destination
- Chain FORWARD_IN_ZONES_SOURCE (0 references)
- target prot opt source destination
- Chain FORWARD_OUT_ZONES (0 references)
- target prot opt source destination
- Chain FORWARD_OUT_ZONES_SOURCE (0 references)
- target prot opt source destination
- Chain FORWARD_direct (0 references)
- target prot opt source destination
- Chain FWDI_public (0 references)
- target prot opt source destination
- Chain FWDI_public_allow (0 references)
- target prot opt source destination
- Chain FWDI_public_deny (0 references)
- target prot opt source destination
- Chain FWDI_public_log (0 references)
- target prot opt source destination
- Chain FWDO_public (0 references)
- target prot opt source destination
- Chain FWDO_public_allow (0 references)
- target prot opt source destination
- Chain FWDO_public_deny (0 references)
- target prot opt source destination
- Chain FWDO_public_log (0 references)
- target prot opt source destination
- Chain INPUT_ZONES (0 references)
- target prot opt source destination
- Chain INPUT_ZONES_SOURCE (0 references)
- target prot opt source destination
- Chain INPUT_direct (0 references)
- target prot opt source destination
- Chain IN_public (0 references)
- target prot opt source destination
- Chain IN_public_allow (0 references)
- target prot opt source destination
- Chain IN_public_deny (0 references)
- target prot opt source destination
- Chain IN_public_log (0 references)
- target prot opt source destination
- Chain OUTPUT_direct (0 references)
- target prot opt source destination
- # service iptables status
- Redirecting to /bin/systemctl status iptables.service
- iptables.service - IPv4 firewall with iptables
- Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled)
- Active: inactive (dead)
- # service iptables start
- Redirecting to /bin/systemctl start iptables.service
- # systemctl start iptables.service
- # service iptables status
- Redirecting to /bin/systemctl status iptables.service
- iptables.service - IPv4 firewall with iptables
- Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled)
- Active: active (exited) since Sun 2014-11-23 17:09:16 EET; 15s ago
- Process: 13857 ExecStart=/usr/libexec/iptables/iptables.init start (code=exited, status=0/SUCCESS)
- Main PID: 13857 (code=exited, status=0/SUCCESS)
- Nov 23 17:09:16 localhost.localdomain iptables.init[13857]: iptables: Applyin...
- Nov 23 17:09:16 localhost.localdomain systemd[1]: Started IPv4 firewall with ...
- Nov 23 17:09:28 localhost.localdomain systemd[1]: Started IPv4 firewall with ...
- Hint: Some lines were ellipsized, use -l to show in full.
- # ping 192.168.5.1
- PING 192.168.5.1 (192.168.5.1) 56(84) bytes of data.
- From 192.168.5.15 icmp_seq=1 Destination Host Unreachable
- From 192.168.5.15 icmp_seq=2 Destination Host Unreachable
- From 192.168.5.15 icmp_seq=3 Destination Host Unreachable
- From 192.168.5.15 icmp_seq=4 Destination Host Unreachable
- ^C
- --- 192.168.5.1 ping statistics ---
- 5 packets transmitted, 0 received, +4 errors, 100% packet loss, time 4001ms
- pipe 4
- # service iptables stop
- Redirecting to /bin/systemctl stop iptables.service
- # systemctl stop iptables.service
- # systemctl status iptables.service
- iptables.service - IPv4 firewall with iptables
- Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled)
- Active: inactive (dead) since Sun 2014-11-23 17:09:59 EET; 25s ago
- Process: 14023 ExecStop=/usr/libexec/iptables/iptables.init stop (code=exited, status=0/SUCCESS)
- Process: 13857 ExecStart=/usr/libexec/iptables/iptables.init start (code=exited, status=0/SUCCESS)
- Main PID: 13857 (code=exited, status=0/SUCCESS)
- Nov 23 17:09:16 localhost.localdomain iptables.init[13857]: iptables: Applyin...
- Nov 23 17:09:16 localhost.localdomain systemd[1]: Started IPv4 firewall with ...
- Nov 23 17:09:28 localhost.localdomain systemd[1]: Started IPv4 firewall with ...
- Nov 23 17:09:59 localhost.localdomain systemd[1]: Stopping IPv4 firewall with...
- Nov 23 17:09:59 localhost.localdomain iptables.init[14023]: iptables: Setting...
- Nov 23 17:09:59 localhost.localdomain iptables.init[14023]: iptables: Flushin...
- Nov 23 17:09:59 localhost.localdomain iptables.init[14023]: iptables: Unloadi...
- Nov 23 17:09:59 localhost.localdomain systemd[1]: Stopped IPv4 firewall with ...
- Nov 23 17:10:17 localhost.localdomain systemd[1]: Stopped IPv4 firewall with ...
- Hint: Some lines were ellipsized, use -l to show in full.
- # ping 192.168.5.1
- PING 192.168.5.1 (192.168.5.1) 56(84) bytes of data.
- From 192.168.5.15 icmp_seq=1 Destination Host Unreachable
- From 192.168.5.15 icmp_seq=2 Destination Host Unreachable
- From 192.168.5.15 icmp_seq=3 Destination Host Unreachable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement