Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo firewall-cmd --add-port=80/tcp --permanent
- target: default
- icmp-block-inversion: no
- interfaces: ens192
- sources:
- services: dhcpv6-client ssh http https
- ports: 80/tcp 443/tcp 8000/tcp
- protocols:
- masquerade: no
- forward-ports:
- source-ports:
- icmp-blocks:
- rich rules:
- sudo nmap -sT {ip address}
- PORT STATE SERVICE
- 22/tcp open ssh
- 443/tcp closed https
- sudo netstat -tulpn
- Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
- tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 17859/nginx: master
- tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1263/sshd
- tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 12372/postgres
- tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1766/master
- tcp6 0 0 :::80 :::* LISTEN 17859/nginx: master
- tcp6 0 0 :::22 :::* LISTEN 1263/sshd
- tcp6 0 0 ::1:5432 :::* LISTEN 12372/postgres
- tcp6 0 0 ::1:25 :::* LISTEN 1766/master
- udp 0 0 127.0.0.1:323 0.0.0.0:* 867/chronyd
- udp6 0 0 ::1:323 :::* 867/chronyd
- sudo ufw status verbose
- Status: inactive
- sestatus
- SELinux status: disabled
Add Comment
Please, Sign In to add comment