Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

How to Allow IP Address in Ubuntu Firewall

trojanbackdoor

Recruit
Basic Member
Messages
15
Reaction score
15
Points
28
Ubuntu-informativetechguide-1.jpg


We’ll learn how to allow IP addresses from Ubuntu Firewall in this UFW tutorial.

Using the ufw allow command in Ubuntu Firewall, we can add rules to allow IP addresses for all traffic or for specific network ports.
ufw allow from <Remote-IP> to <local-IP>​

Example
ufw allow from 192.168.1.50​

This Firewall rule will allow all traffic from the IP Address 192.168.1.50.

image-16.png

ufw allow from 192.168.1.50 to 192.168.0.10​

This one will allow all traffic from IP 192.168.1.50, But only on Local Server IP 192.168.0.10.
ufw allow from 192.168.1.10 to any proto tcp​

From the Ubuntu firewall, we allow all network traffic related to the TCP protocol to the IP address 192.168.1.10.
ufw allow from 192.168.1.10 to any proto tcp port 80​

Open Port 80 (HTTP Traffic) to the IP Address 192.168.1.10 from Ubuntu Firewall.

image-17.png

ufw allow from 192.168.1.10 to any proto udp port 53​

This Rule will Open UDP port 53 to IP 192.168.1.10.

Allow IP Network From Ubuntu Firewall

Using the subnet mask prefix we can allow the entire subnetwork from the UFW Firewall.
ufw allow from 192.168.1.0/24 to any proto tcp port 21​

This Rule will Allow FTP Traffic on 192.168.1.0/24 Network.

We now learned how to use the ufw allow command to allow IP through the UFW Firewall in this tutorial. :)

Credits
 
Top