Ubuntu 9.10 FIrewall--is UFW allowing anything through by default?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Ubuntu 9.10 FIrewall--is UFW allowing anything through by default?
# 1  
Ubuntu 9.10 FIrewall--is UFW allowing anything through by default?

Hi,

I have enabled my UBUNTU 9.10 ufw. By default does it let anything through?
I would think it allows all outbound originating requests through and allows for their return but it does not allow any inbound requests. Is this how it works?

---------- Post updated at 08:17 PM ---------- Previous update was at 07:31 PM ----------

I get this using status command:

Code:
root@-desktop:~# ufw status verbose
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing)
New profiles: skip


Last edited by pludi; 02-09-2010 at 03:30 AM.. Reason: code tags, please...
# 2  
By default, no, it's not going to let anything through.

To let ssh and http, you could set the following (change to your needs)

root@# ufw limit ssh/tcp
Rules updated
root# ufw allow proto tcp from 192.168.0.0/16 to any port 80
Rule added
root# ufw status
Status: active

To Action From
-- ------ ----
22/tcp LIMIT Anywhere
80/tcp ALLOW 192.168.0.0/16

The man page for ufw shows probably everything you would need to know.
 

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #178
Difficulty: Medium
The Apple Computer Company was founded on April 1, 1978.
True or False?

5 More Discussions You Might Find Interesting

1. Linux

Linux keeps freezing on UFW BLOCK

Hi everyone, I have had trouble getting several versions of Linux stable on my machine over the last few months. I do not think the issue is with the machine. Windows ran fine on it for a long time. The current issue is that whenever I lock the screen then come back after a long time I find... (2 Replies)
Discussion started by: mojoman
2 Replies

2. UNIX for Beginners Questions & Answers

[ufw] force all traffic through VPN

I am trying to force all my tun0's traffic through VPN but some some reason, the ufw is not working the way I want to. Below are the commands that I have executed.. I am able to connect to my SSH and NFS server but for some reason that I am unable to understand, I am unable to surf the net. ... (0 Replies)
Discussion started by: soichiro
0 Replies

3. IP Networking

Firewall problems on my ubuntu gw

Hi, I make an ubuntu based gateway with dns, dhcp, proxy and a firewall. The problem is with the firewall, a classroom is connected to gw.eth1 with private ip 17.18.43.XX and gw.eth0 with public ip 134.201.34.XX is connected to internet trought 134.201.3.1 and others server like LDAP on... (0 Replies)
Discussion started by: falafel
0 Replies

4. Ubuntu

ubuntu kernel: [ 729.529501] [UFW ALLOW] ,[UFW AUDIT]

Hi , In our ubuntu server 10.10 ,we are getting below logs .Every day i need to restart server ,other wise it will not accessible.Some times ,i need to restart two times. When i ping google.com ,it was very slow .some times host not reachable .After reboot ,it will ping as good. ... (0 Replies)
Discussion started by: srinivasa
0 Replies

5. UNIX for Dummies Questions & Answers

UFW show args command

In ubuntu man page there is this command. What are values of ARGS I can use? (0 Replies)
Discussion started by: mojoman
0 Replies

Featured Tech Videos