OK,so this is the complete output of iptables -L
Code:
sudo iptables -L
Chain INPUT (policy DROP)
target prot opt source destination
ufw-before-logging-input all -- anywhere anywhere
ufw-before-input all -- anywhere anywhere
ufw-after-input all -- anywhere anywhere
ufw-after-logging-input all -- anywhere anywhere
ufw-reject-input all -- anywhere anywhere
ufw-track-input all -- anywhere anywhere
Chain FORWARD (policy DROP)
target prot opt source destination
ufw-before-logging-forward all -- anywhere anywhere
ufw-before-forward all -- anywhere anywhere
ufw-after-forward all -- anywhere anywhere
ufw-after-logging-forward all -- anywhere anywhere
ufw-reject-forward all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ufw-before-logging-output all -- anywhere anywhere
ufw-before-output all -- anywhere anywhere
ufw-after-output all -- anywhere anywhere
ufw-after-logging-output all -- anywhere anywhere
ufw-reject-output all -- anywhere anywhere
ufw-track-output all -- anywhere anywhere
Chain ufw-after-forward (1 references)
target prot opt source destination
Chain ufw-after-input (1 references)
target prot opt source destination
ufw-skip-to-policy-input udp -- anywhere anywhere udp dpt:netbios-ns
ufw-skip-to-policy-input udp -- anywhere anywhere udp dpt:netbios-dgm
ufw-skip-to-policy-input tcp -- anywhere anywhere tcp dpt:netbios-ssn
ufw-skip-to-policy-input tcp -- anywhere anywhere tcp dpt:microsoft-ds
ufw-skip-to-policy-input udp -- anywhere anywhere udp dpt:bootps
ufw-skip-to-policy-input udp -- anywhere anywhere udp dpt:bootpc
ufw-skip-to-policy-input all -- anywhere anywhere ADDRTYPE match dst-type BROADCAST
Chain ufw-after-logging-forward (1 references)
target prot opt source destination
LOG all -- anywhere anywhere limit: avg 3/min burst 10 LOG level warning prefix `[UFW BLOCK] '
Chain ufw-after-logging-input (1 references)
target prot opt source destination
LOG all -- anywhere anywhere limit: avg 3/min burst 10 LOG level warning prefix `[UFW BLOCK] '
Chain ufw-after-logging-output (1 references)
target prot opt source destination
LOG all -- anywhere anywhere limit: avg 3/min burst 10 LOG level warning prefix `[UFW ALLOW] '
Chain ufw-after-output (1 references)
target prot opt source destination
Chain ufw-before-forward (1 references)
target prot opt source destination
ufw-user-forward all -- anywhere anywhere
Chain ufw-before-input (1 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ufw-logging-deny all -- anywhere anywhere state INVALID
DROP all -- anywhere anywhere state INVALID
ACCEPT icmp -- anywhere anywhere icmp destination-unreachable
ACCEPT icmp -- anywhere anywhere icmp source-quench
ACCEPT icmp -- anywhere anywhere icmp time-exceeded
ACCEPT icmp -- anywhere anywhere icmp parameter-problem
ACCEPT icmp -- anywhere anywhere icmp echo-request
ACCEPT udp -- anywhere anywhere udp spt:bootps dpt:bootpc
ufw-not-local all -- anywhere anywhere
ACCEPT all -- base-address.mcast.net/4 anywhere
ACCEPT all -- anywhere base-address.mcast.net/4
ufw-user-input all -- anywhere anywhere
Chain ufw-before-logging-forward (1 references)
target prot opt source destination
LOG all -- anywhere anywhere state NEW limit: avg 3/min burst 10 LOG level warning prefix `[UFW AUDIT] '
Chain ufw-before-logging-input (1 references)
target prot opt source destination
LOG all -- anywhere anywhere state NEW limit: avg 3/min burst 10 LOG level warning prefix `[UFW AUDIT] '
Chain ufw-before-logging-output (1 references)
target prot opt source destination
LOG all -- anywhere anywhere state NEW limit: avg 3/min burst 10 LOG level warning prefix `[UFW AUDIT] '
Chain ufw-before-output (1 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ufw-user-output all -- anywhere anywhere
Chain ufw-logging-allow (0 references)
target prot opt source destination
LOG all -- anywhere anywhere limit: avg 3/min burst 10 LOG level warning prefix `[UFW ALLOW] '
Chain ufw-logging-deny (2 references)
target prot opt source destination
LOG all -- anywhere anywhere limit: avg 3/min burst 10 LOG level warning prefix `[UFW BLOCK] '
Chain ufw-not-local (1 references)
target prot opt source destination
RETURN all -- anywhere anywhere ADDRTYPE match dst-type LOCAL
RETURN all -- anywhere anywhere ADDRTYPE match dst-type MULTICAST
RETURN all -- anywhere anywhere ADDRTYPE match dst-type BROADCAST
ufw-logging-deny all -- anywhere anywhere limit: avg 3/min burst 10
DROP all -- anywhere anywhere
Chain ufw-reject-forward (1 references)
target prot opt source destination
Chain ufw-reject-input (1 references)
target prot opt source destination
Chain ufw-reject-output (1 references)
target prot opt source destination
Chain ufw-skip-to-policy-forward (0 references)
target prot opt source destination
DROP all -- anywhere anywhere
Chain ufw-skip-to-policy-input (7 references)
target prot opt source destination
DROP all -- anywhere anywhere
Chain ufw-skip-to-policy-output (0 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere
Chain ufw-track-input (1 references)
target prot opt source destination
Chain ufw-track-output (1 references)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere state NEW
ACCEPT udp -- anywhere anywhere state NEW
Chain ufw-user-forward (1 references)
target prot opt source destination
Chain ufw-user-input (1 references)
target prot opt source destination
DROP tcp -- anywhere anywhere tcp dpt:ssh
DROP udp -- anywhere anywhere udp dpt:ssh
DROP tcp -- 212.48.8.140 ubuntu-desktop.local
DROP udp -- 212.48.8.140 ubuntu-desktop.local
DROP tcp -- vps13662.ovh.net ubuntu-desktop.local
DROP udp -- vps13662.ovh.net ubuntu-desktop.local
DROP all -- 212.48.8.140 ubuntu-desktop.local
DROP tcp -- anywhere anywhere multiport dports loc-srv,netbios-ssn,microsoft-ds
DROP udp -- anywhere anywhere multiport dports netbios-ns,netbios-dgm
DROP tcp -- anywhere anywhere tcp dpt:nfs
DROP udp -- anywhere anywhere udp dpt:nfs
DROP tcp -- anywhere anywhere tcp dpt:7634
DROP udp -- anywhere anywhere udp dpt:7634
DROP all -- 111.221.64.0/111.221.127.255 anywhere
DROP all -- 213.199.160.0/213.199.191.255 anywhere
DROP all -- 157.52.0.0/157.60.255.255 anywhere
DROP all -- 65.52.0.0/65.55.255.255 anywhere
DROP all -- 207.46.0.0/207.46.255.255 anywhere
DROP all -- anywhere 207.46.0.0/207.46.255.255
DROP all -- 2.192.0.0/2.195.255.255 anywhere
DROP all -- anywhere 2.192.0.0/2.195.255.255
DROP all -- 212.48.8.0/212.48.11.255 anywhere
DROP all -- anywhere 212.48.8.0/212.48.11.255
DROP all -- anywhere 151.75.0.0/151.75.255.255
and this is for iptables -v -x -n -L
Code:
sudo iptables -v -x -n -L
Chain INPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
4247 4009413 ufw-before-logging-input all -- * * 0.0.0.0/0 0.0.0.0/0
4247 4009413 ufw-before-input all -- * * 0.0.0.0/0 0.0.0.0/0
8 4608 ufw-after-input all -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ufw-after-logging-input all -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ufw-reject-input all -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ufw-track-input all -- * * 0.0.0.0/0 0.0.0.0/0
Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 ufw-before-logging-forward all -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ufw-before-forward all -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ufw-after-forward all -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ufw-after-logging-forward all -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ufw-reject-forward all -- * * 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT 2 packets, 80 bytes)
pkts bytes target prot opt in out source destination
3714 331495 ufw-before-logging-output all -- * * 0.0.0.0/0 0.0.0.0/0
3714 331495 ufw-before-output all -- * * 0.0.0.0/0 0.0.0.0/0
695 47240 ufw-after-output all -- * * 0.0.0.0/0 0.0.0.0/0
695 47240 ufw-after-logging-output all -- * * 0.0.0.0/0 0.0.0.0/0
695 47240 ufw-reject-output all -- * * 0.0.0.0/0 0.0.0.0/0
695 47240 ufw-track-output all -- * * 0.0.0.0/0 0.0.0.0/0
Chain ufw-after-forward (1 references)
pkts bytes target prot opt in out source destination
Chain ufw-after-input (1 references)
pkts bytes target prot opt in out source destination
0 0 ufw-skip-to-policy-input udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:137
0 0 ufw-skip-to-policy-input udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:138
0 0 ufw-skip-to-policy-input tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:139
0 0 ufw-skip-to-policy-input tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:445
8 4608 ufw-skip-to-policy-input udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:67
0 0 ufw-skip-to-policy-input udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:68
0 0 ufw-skip-to-policy-input all -- * * 0.0.0.0/0 0.0.0.0/0 ADDRTYPE match dst-type BROADCAST
Chain ufw-after-logging-forward (1 references)
pkts bytes target prot opt in out source destination
0 0 LOG all -- * * 0.0.0.0/0 0.0.0.0/0 limit: avg 3/min burst 10 LOG flags 0 level 4 prefix `[UFW BLOCK] '
Chain ufw-after-logging-input (1 references)
pkts bytes target prot opt in out source destination
0 0 LOG all -- * * 0.0.0.0/0 0.0.0.0/0 limit: avg 3/min burst 10 LOG flags 0 level 4 prefix `[UFW BLOCK] '
Chain ufw-after-logging-output (1 references)
pkts bytes target prot opt in out source destination
60 5038 LOG all -- * * 0.0.0.0/0 0.0.0.0/0 limit: avg 3/min burst 10 LOG flags 0 level 4 prefix `[UFW ALLOW] '
Chain ufw-after-output (1 references)
pkts bytes target prot opt in out source destination
Chain ufw-before-forward (1 references)
pkts bytes target prot opt in out source destination
0 0 ufw-user-forward all -- * * 0.0.0.0/0 0.0.0.0/0
Chain ufw-before-input (1 references)
pkts bytes target prot opt in out source destination
150 10132 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
3835 3954492 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
1 40 ufw-logging-deny all -- * * 0.0.0.0/0 0.0.0.0/0 state INVALID
1 40 DROP all -- * * 0.0.0.0/0 0.0.0.0/0 state INVALID
0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0 icmp type 3
0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0 icmp type 4
0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0 icmp type 11
0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0 icmp type 12
0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0 icmp type 8
2 1152 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp spt:67 dpt:68
259 43597 ufw-not-local all -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT all -- * * 224.0.0.0/4 0.0.0.0/0
226 35859 ACCEPT all -- * * 0.0.0.0/0 224.0.0.0/4
33 7738 ufw-user-input all -- * * 0.0.0.0/0 0.0.0.0/0
Chain ufw-before-logging-forward (1 references)
pkts bytes target prot opt in out source destination
0 0 LOG all -- * * 0.0.0.0/0 0.0.0.0/0 state NEW limit: avg 3/min burst 10 LOG flags 0 level 4 prefix `[UFW AUDIT] '
Chain ufw-before-logging-input (1 references)
pkts bytes target prot opt in out source destination
62 8023 LOG all -- * * 0.0.0.0/0 0.0.0.0/0 state NEW limit: avg 3/min burst 10 LOG flags 0 level 4 prefix `[UFW AUDIT] '
Chain ufw-before-logging-output (1 references)
pkts bytes target prot opt in out source destination
64 4929 LOG all -- * * 0.0.0.0/0 0.0.0.0/0 state NEW limit: avg 3/min burst 10 LOG flags 0 level 4 prefix `[UFW AUDIT] '
Chain ufw-before-output (1 references)
pkts bytes target prot opt in out source destination
150 10132 ACCEPT all -- * lo 0.0.0.0/0 0.0.0.0/0
2869 274123 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
695 47240 ufw-user-output all -- * * 0.0.0.0/0 0.0.0.0/0
Chain ufw-logging-allow (0 references)
pkts bytes target prot opt in out source destination
0 0 LOG all -- * * 0.0.0.0/0 0.0.0.0/0 limit: avg 3/min burst 10 LOG flags 0 level 4 prefix `[UFW ALLOW] '
Chain ufw-logging-deny (2 references)
pkts bytes target prot opt in out source destination
1 40 LOG all -- * * 0.0.0.0/0 0.0.0.0/0 limit: avg 3/min burst 10 LOG flags 0 level 4 prefix `[UFW BLOCK] '
Chain ufw-not-local (1 references)
pkts bytes target prot opt in out source destination
0 0 RETURN all -- * * 0.0.0.0/0 0.0.0.0/0 ADDRTYPE match dst-type LOCAL
226 35859 RETURN all -- * * 0.0.0.0/0 0.0.0.0/0 ADDRTYPE match dst-type MULTICAST
33 7738 RETURN all -- * * 0.0.0.0/0 0.0.0.0/0 ADDRTYPE match dst-type BROADCAST
0 0 ufw-logging-deny all -- * * 0.0.0.0/0 0.0.0.0/0 limit: avg 3/min burst 10
0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0
Chain ufw-reject-forward (1 references)
pkts bytes target prot opt in out source destination
Chain ufw-reject-input (1 references)
pkts bytes target prot opt in out source destination
Chain ufw-reject-output (1 references)
pkts bytes target prot opt in out source destination
Chain ufw-skip-to-policy-forward (0 references)
pkts bytes target prot opt in out source destination
0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0
Chain ufw-skip-to-policy-input (7 references)
pkts bytes target prot opt in out source destination
8 4608 DROP all -- * * 0.0.0.0/0 0.0.0.0/0
Chain ufw-skip-to-policy-output (0 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0
Chain ufw-track-input (1 references)
pkts bytes target prot opt in out source destination
Chain ufw-track-output (1 references)
pkts bytes target prot opt in out source destination
160 9600 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW
533 37560 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW
Chain ufw-user-forward (1 references)
pkts bytes target prot opt in out source destination
Chain ufw-user-input (1 references)
pkts bytes target prot opt in out source destination
0 0 DROP tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22
0 0 DROP udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:22
0 0 DROP tcp -- * * 212.48.8.140 192.168.1.215
0 0 DROP udp -- * * 212.48.8.140 192.168.1.215
0 0 DROP tcp -- * * 46.105.8.220 192.168.1.215
0 0 DROP udp -- * * 46.105.8.220 192.168.1.215
0 0 DROP all -- * * 212.48.8.140 192.168.1.215
0 0 DROP tcp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 135,139,445
25 3130 DROP udp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 137,138
0 0 DROP tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:2049
0 0 DROP udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:2049
0 0 DROP tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:7634
0 0 DROP udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:7634
0 0 DROP all -- * * 111.221.64.0/111.221.127.255 0.0.0.0/0
0 0 DROP all -- * * 213.199.160.0/213.199.191.255 0.0.0.0/0
0 0 DROP all -- * * 157.52.0.0/157.60.255.255 0.0.0.0/0
0 0 DROP all -- * * 65.52.0.0/65.55.255.255 0.0.0.0/0
0 0 DROP all -- * * 207.46.0.0/207.46.255.255 0.0.0.0/0
0 0 DROP all -- * * 0.0.0.0/0 207.46.0.0/207.46.255.255
0 0 DROP all -- * * 2.192.0.0/2.195.255.255 0.0.0.0/0
0 0 DROP all -- * * 0.0.0.0/0 2.192.0.0/2.195.255.255
0 0 DROP all -- * * 212.48.8.0/212.48.11.255 0.0.0.0/0
0 0 DROP all -- * * 0.0.0.0/0 212.48.8.0/212.48.11.255
0 0 DROP all -- * * 0.0.0.0/0 151.75.0.0/151.75.255.255
0 0 DROP all -- * * 151.75.0.0/151.75.255.255 0.0.0.0/0
0 0 DROP all -- * * 78.141.128.0/78.141.191.255 0.0.0.0/0
0 0 DROP all -- * * 0.0.0.0/0 78.141.128.0/78.141.191.255
0 0 DROP all -- * * 204.13.162.127 0.0.0.0/0
0 0 DROP all -- * * 0.0.0.0/0 204.13.162.127
0 0 DROP all -- * * 98.142.96.0/98.142.111.255 0.0.0.0/0
0 0 DROP all -- * * 0.0.0.0/0 98.142.96.0/98.142.111.255
0 0 DROP all -- * * 0.0.0.0/0 204.13.160.0/204.13.163.255
0 0 DROP all -- * * 204.13.160.0/204.13.163.255 0.0.0.0/0
0 0 DROP all -- * * 208.73.208.0/208.73.215.255 0.0.0.0/0
0 0 DROP all -- * * 0.0.0.0/0 208.73.208.0/208.73.215.255
0 0 DROP all -- * * 0.0.0.0/0 213.135.251.0/213.135.251.255
0 0 DROP all -- * * 213.135.251.0/213.135.251.255 0.0.0.0/0
0 0 DROP all -- * * 54.240.0.0/54.255.255.255 0.0.0.0/0
0 0 DROP all -- * * 0.0.0.0/0 54.240.0.0/54.255.255.255
0 0 DROP all -- * * 0.0.0.0/0 23.20.0.0/23.23.255.255
0 0 DROP all -- * * 23.20.0.0/23.23.255.255 0.0.0.0/0
0 0 DROP all -- * * 216.182.224.0/216.182.239.255 0.0.0.0/0
0 0 DROP all -- * * 0.0.0.0/0 216.182.224.0/216.182.239.255
0 0 DROP all -- * * 0.0.0.0/0 213.199.160.0/213.199.191.255
Chain ufw-user-limit (0 references)
pkts bytes target prot opt in out source destination
0 0 LOG all -- * * 0.0.0.0/0 0.0.0.0/0 limit: avg 3/min burst 5 LOG flags 0 level 4 prefix `[UFW LIMIT BLOCK] '
0 0 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-port-unreachable
Chain ufw-user-limit-accept (0 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0
Chain ufw-user-logging-forward (0 references)
pkts bytes target prot opt in out source destination
Chain ufw-user-logging-input (0 references)
pkts bytes target prot opt in out source destination
Chain ufw-user-logging-output (0 references)
pkts bytes target prot opt in out source destination
Chain ufw-user-output (1 references)
pkts bytes target prot opt in out source destination
0 0 DROP all -- * * 192.168.1.215 212.48.8.140
0 0 DROP tcp -- * * 192.168.1.215 212.48.8.140
0 0 DROP udp -- * * 192.168.1.215 212.48.8.140
0 0 DROP tcp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 135,139,445
0 0 DROP udp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 137,138
0 0 DROP tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:2049
0 0 DROP udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:2049
0 0 DROP tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:7634
0 0 DROP udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:7634
0 0 DROP all -- * * 0.0.0.0/0 111.221.64.0/111.221.127.255
0 0 DROP all -- * * 0.0.0.0/0 213.199.160.0/213.199.191.255
0 0 DROP all -- * * 0.0.0.0/0 157.52.0.0/157.60.255.255
0 0 DROP all -- * * 0.0.0.0/0 65.52.0.0/65.55.255.255
0 0 DROP all -- * * 0.0.0.0/0 2.192.0.0/2.195.255.255
I've also edited my first post because it wasn't correct-as for the other question,this computer isn't also a router.
Bookmarks