
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

1. Alternative Workarounds If you cannot upgrade immediately , try these temporary solutions: 1. Use Old Ubuntu Repositories (Temporary Fix)
sudo netstat - tulnp | grep apache or bash sudo ss - tulnp | grep apache
Alternative: Use ss - tulnp for modern Ubuntu versions.
4. Check Routing Table (route) bash route - n - Shows the kernel routing table. - - n prevents resolving IP addresses to hostnames for faster output. Alternative: Use ip route show. 5. View Active ARP Table (arp) bash arp - a - Displays ARP (Address Resolution Protocol) cache. Alternative: Use ip neigh. 6. Enable or Disable a Network Interface bash sudo ifconfig eth0 up # Enable interface sudo ifconfig eth0 down # Disable interface 7. Assign a Static IP Address bash sudo ifconfig eth0 192.168.1.100 netmask 255.255.255. - Temporarily assigns 192.168.1.100 to eth0. Use /etc/netplan/ for permanent changes in newer Ubuntu versions. 8. Test Network Connectivity (ping) bash ping google.com
sudo nmap - sn 192.168.1.0/
Port & Connection Monitoring
10. Check Open Ports (ss and netstat) bash ss - tulnp or bash netstat - tulnp - Lists all open TCP & UDP ports. 11. Show All Established Connections bash ss - s - Displays summary statistics of active connections. 12. Check Listening Services bash netstat - plnt - Shows which ports are actively listening. 13. Scan Network for Open Ports (nmap) bash sudo nmap - p 1-65535 localhost - Scans all 65,535 ports on the local system.
bash nmcli dev wifi connect "WiFi_Name" password "WiFi_Password"
Advanced Network Security & Troubleshooting
21. Block an IP Using UFW (Firewall) bash sudo ufw deny from 192.168.1. - Blocks all traffic from IP 192.168.1.50. 22. Check Active Firewall Rules bash sudo ufw status - Displays current firewall rules. 23. Flush All Firewall Rules bash sudo iptables --flush - Resets all firewall rules. 24. Find MAC Address bash ip link show eth or bash ifconfig eth0 | grep ether - Displays the MAC address of an interface. 25. Enable Packet Forwarding bash sudo sysctl - w net.ipv4.ip_forward=