Uncomplicated Firewall (ufw)

learn more… | top users | synonyms

0
votes
1answer
2k views

ubuntu server 12.04 and ufw failure on startup, and several module not found errors

I have problem enabling ufw on startup, it works fine if I do: sudo ufw enable. But after restart puf, I've to redo it. I tried: sudo /lib/ufw/ufw-init stop ; sudo /lib/ufw/ufw-init start And ...
1
vote
1answer
1k views

How to configure ufw on Ubuntu and still retain internet connection?

I am having trouble with how to configure ufw firewall for my Ubuntu 13.04 VPS server. Each time I enable the firewall, it closes all connections to the server. I need to open the following ports. I ...
0
votes
1answer
184 views

UFW blocks packets by the router, spams the log

While checking my systems logs I noticed this: Dec 30 19:45:24 Nick-Laptop kernel: [ 5324.288321] [UFW BLOCK] IN=eth0 OUT= MAC=01:00:5e:00:00:01:00:05:59:49:62:aa:08:00 SRC=192.168.2.1 DST=224.0.0.1 ...
2
votes
2answers
376 views

UFW and firewall

So I recently installed ubuntu and I have been working with it no problem.While browsing through the security guides (specifically: https://wiki.ubuntu.com/BasicSecurity) I noticed this: "enable the ...
0
votes
1answer
457 views

Are the Gufw default profiles empty?

I've just installed gufw on my notebook. I'm trying to setup my laptop with a very secure - roadwarrior - type of configuration. So the choices available in GUFW with a public, home and office profile ...
1
vote
2answers
1k views

Forward port to LXC guest using UFW

I am trying to forward port 2222 on my host 192.168.2.252 to a LXC guest on 10.0.3.11. How do I do it using the UFW-framework? In other words I want to do this but with the ufw-framework. iptables ...
0
votes
1answer
75 views

why opening a port is so difficult in ubuntu?

I have searched around and I have run these commands iptables -A INPUT -p tcp -d 0/0 -s 0/0 --dport 5432 -j ACCEPT iptables-save > /etc/iptables.rules And I rebooted the box. I had no luck. ...
0
votes
1answer
164 views

ufw before.rules file blank, does this impact setting up VPN server?

Hi all please assit i am trying to setup open-vpn following this link and currently having some issues. Easiest way to setup Ubuntu as a VPN server step 10 were I have to edit the ufw 10: This step ...
4
votes
1answer
2k views

Ban IP by country in UFW

I want to block a country in my server, but I don't know which rule I must use in UFW (or iptables). For example, people from US and other countries can see the site, but visitors from Russia can't. ...
0
votes
1answer
1k views

UFW, allow from wlan to eth

I would like to use my ubuntu 12.04 notebook as a wifi hotsport to my smatphone. Everything is going ok, using dnsmasq and hostapd and allowing ports 68 and 53 on UFW. But to access the web the UFW ...
-3
votes
2answers
184 views

What documentation and help resources are available for setting and examining UFW rules? [closed]

The guy who wrote ufw is too smart for me. Is there any documentation for any of the python code? Some things I'm trying to do are: Allow/close ports by number Get the currently set rules Remove ...
0
votes
1answer
2k views

Connecting to NAT virtualbox guest from bridged network

I've setup a Virtualbox Ubuntu 12.04 server using Vagrant. I can ssh to it and even ping my desktop from it. What doesn't work is to ping the guest OS from my desktop. I've tried to flush the ...
3
votes
1answer
221 views

UFW python documentation

I'm trying to access ufw with python, but on line 53 of backend.py, they raise a weird error that makes no sense: Traceback (most recent call last): File "mymodule.py", line 1467, in ...
1
vote
1answer
213 views

How does ufw handle conflicting rules?

I recently had the following conflicting rules on ufw 445/tcp ALLOW 192.168.1.0/24 445 DENY anywhere 445 DENY anywhere IPV6 ...
1
vote
0answers
1k views

SSH connections rejected after UFW allow 22

I am trying to setup UFW on a 12.04 server. SSH works great with UFW off. Setting root@ugvps:~# ufw enable Firewall is active and enabled on system startup root@ugvps:~# ufw status Status: active ...
1
vote
0answers
134 views

Google Talk > Gufw set to Deny/Deny does BLOCK. Please help

I have my Ubuntu 12.04 Server. I installed Google Talk in it. I opened gufw, and set it to deny/deny and there are no allow rules. Now firefox wont connect to the internet which is good... But... ...
1
vote
0answers
534 views

UFW Firewall Rules, has a hole in it. Please help

Can someone please look at the below output for me. I have my UFW on deny/deny, and here are the rules. But if I leave my Ubuntu Server on, with a Windows XP VM, and let Instant Messenger run in the ...
1
vote
1answer
256 views

Problem: Ufw Enabled with Deny/Deny, however SSH Inbound still works. Please help

In order to lock down my server, i installed ubuntu with ufw. I run a VM inside the server that hosts a ssh server. I opened the server and ran UFW and set Deny to send and Deny to Recieve. Now it ...
0
votes
2answers
490 views

Litle question about ufw command

Hi guys i would like to setup a specific rule for my ufw but i have the problem. How could i type this ? from ip adress 192.168.1.203 on interface eth0 alow port 80 I have on local pc ip address ...
0
votes
1answer
93 views

GUFW for console?

I like the GUFW, but need something similar for console. I mean an interactive software without need to remember all the command line keys. Could you suggest one?
4
votes
2answers
3k views

Why is ufw logging 'BLOCK' messages regarding a port for which ufw is configured to 'ALLOW' connections?

Here's an example log message: May 25 10:36:07 myserver kernel: [7057243.392334] [UFW BLOCK] IN=eth0 OUT= MAC=00:02:55:67:82:eb:00:06:b1:3a:ef:62:08:00 SRC=69.197.128.26 DST=192.168.100.101 LEN=44 ...
1
vote
2answers
2k views

ufw firewall operation

I have always run the program UFW as my firewall in Ubuntu, and been satisifed with its performance. When I installed Ubuntu 13.04, and enabled ufw, I was not able to access the internet, and all ...
3
votes
1answer
6k views

How do I allow local IPv6 subnets in ufw?

I recently got IPv6 connectivity at home and now I would like to allow connections to my home server via IPv6 from the LAN only. The trick is that the IPv6 address/prefix assigned to the server is ...
1
vote
1answer
4k views

UFW 'default deny incoming' doesn't work

I have UFW enabled, 'default deny incoming' set and no any additional rules, but I still can access all ports from other PCs. I have to manually block each port. What can be wrong?
5
votes
2answers
7k views

What could be the cause for these strange UFW block entries in my syslog?

I've recently noticed a large number of recurring UFW blocks in my syslog. This surprised me as I have no UFW rules set: $ sudo ufw status verbose Status: active Logging: on (low) Default: deny ...
0
votes
1answer
1k views

How do I configure ufw to only allow outgoing/established connections for a IPv6 network?

How do I configure ufw to only allow outgoing/established connections for a IPv6 network? I am using an old computer with 12.04 installed to create an IPv6 router for my local network. I would like ...
1
vote
1answer
515 views

Setup firewall: ask user to allow new incoming/outgoing traffic?

I'm using Ubuntu 12.10 and as I know there is already a firewall on any ubuntu system. It's ufw and because I like fancy gui stuff I can use gufw, that's very nice. Now I would like to configure this ...
5
votes
1answer
5k views

Can I uninstall UFW completely?

I need to configure iptables manually and save and restore the rules using iptables-persistent package. so I don't want ufw anymore. I can simply disable it. but many chains are exists in iptables ...
2
votes
2answers
2k views

How can I cancel all the current communication from particular IP in Ubuntu 12.04?

I am working on Ubuntu 12.04 firewall. I want to deny any IP on runtime. I am using "ufw deny from IP". It's working for future connections. But it is not cancelling the existing connections like ssh. ...
3
votes
0answers
444 views

What do these lines in the UFW logfile mean?

These lines are repeated several times, first one at the time when remote ssh connection with the machine is lost (mac address is the address of eth used for Internet connection) Mar 24 21:20:32 ...
5
votes
2answers
2k views

Is it possible to block a webpage using ufw?

basically I have two machines X and Y. I want to block "http:// <IP-of-Y-Here> /AFolder/" from machine X on HTTP port 80 using ufw. Trivially, this can be completed (awfully) using ufw ...
2
votes
0answers
345 views

Why does UFW seem to slow down wordpress?

I have a speedy install of wordpress going on ubuntu 12.04. Everytime i enable the UFW firewall, things can get really slow. Sometimes fast, sometimes slow, intermittently. Logging on through ssh ...
2
votes
2answers
2k views

firewall ufw is “enable and active” but gufw is off

question concerning the ufw firewall : sudo ufw enable returns Firewall is active and enabled on system startup sounds fine, but when i start gufw after reboot, it is still off what does that ...
0
votes
2answers
2k views

Problems allowing outgoing multicast in ufw

I am having problems configuring the uncomplicated firewall (ufw) to allow outgoing multicast traffic. I am blocking all in and outgoing connections as the default policy. I have supplemented with the ...
1
vote
1answer
200 views

User to access only to specific IP addresses

How can I setup Ubuntu box so logged user can access only to several IP addresses, on all protocols? Additional problem is that Ubuntu uses proxy to acceess to internet. Tried with UFW, but did not ...
0
votes
1answer
754 views

Can't open a port

I need to run an app on my computer which connects to local port 49100. So everything runs on one computer. I tried adding rules to gufw, firestarter, manually: sudo iptables -A INPUT -p tcp --dport ...
1
vote
1answer
874 views

Regarding ufw firewall

I am using Gproxy software in my computer(Ubuntu 12.10). I want to allow incoming connection from only one IP adress,so that he can use internet. what settings should I configure in ufw firewall.
2
votes
1answer
252 views

Using Ubuntu as a gateway for monitoring and possibly IPS IDS within Active Directory

Ok, I've searched for days, maybe you can point me in the right direction. I have an MPLS scenario with a shared gateway in a multi-domain M$FT AD environment. On the inside of the MPLS all of the ...
1
vote
1answer
871 views

ufw configuration nat ppp0

please some tips how i can allow this request in ufw: [UFW BLOCK] IN=ppp0 OUT=eth0 MAC= SRC=10.11.22.2 DST=8.8.4.4 LEN=71 TOS=0x00 PREC=0x00 TTL=127 ID=52 PROTO=UDP SPT=59405 DPT=53 LEN=51 i tried ...
1
vote
0answers
181 views

Ubuntu all versions from 10.04 till 12.10 [closed]

Is simply enabling the firewall ufw (sudo ufw enable) sufficient enough for protection of the OS ? I mean should extra rules be added for 'better' protection, or is simply enabling the firewall enough ...
1
vote
2answers
1k views

UFW not allowing Transmission to transfer

I have set the rules in ufw for Transmission but when I try to use it it will not transfer and it also says the port is closed when checked under preferences. If I turn the UFW firewall off it still ...
0
votes
1answer
5k views

Port listening on localhost:8000 but not on ip:8000

Hello I'm running a web application on port 8000. When I access it from the host server localhost:8000 it responds ok, 127.0.0.1:8000 also works, but 192.168.1.7:8000 does not work. 192.168.1.7 is the ...
5
votes
1answer
11k views

Why I'm getting this [UFW BLOCK] in my syslogs?

I wonder why I get this error on my syslogs: [7732763.396193] [UFW BLOCK] IN=eth0 OUT= MAC=02:8b:1a:75:d5:7b:02:8b:1a:40:00:03:08:00 SRC=x.x.x.x DST=x.x.x.x LEN=40 TOS=0x00 PREC=0x00 TTL=64 ID=53703 ...
2
votes
1answer
3k views

How do I configure ufw to allow ssh on another port? [closed]

I'm having some difficulties at the moment with my Ubuntu SSH server. The only title I could come up with summarizing my situation was too long so here is my problem: I recently discovered the ...
5
votes
2answers
12k views

How to configure UFW to allow IP Forwarding?

I have UFW, OpenVPN and Virtualbox installed on my home server. I have a host-only network for my virtual machine guests (vboxnet0) set up with the IP range 10.0.1.0, and another IP range of 10.0.0.0 ...
6
votes
1answer
3k views

Block Ping from a specific IP

I am on a private LAN 192.168.1.0/24. My ip is 192.168.1.3, I want to block only ping requests from 192.168.1.2. I am running ubuntu 11.10. I found two links First tells how to block an IP but not ...
3
votes
2answers
460 views

If I enable ufw, and disable ssh. Is my base install Ubuntu 12.04 safe from the outside world?

I installed Ubuntu 12.04 I then installed Gufw, enabled it and Set every known application setting to "Deny". I never installed sshdaemon so I think its off. My machine still responds to pings... ...
1
vote
1answer
1k views

Windows VirtualBox can't browse network

I'm running Windows XP as a VirtualBox guest OS under Ubuntu 11.10, and I can't browse the Windows network. It seems like I can connect to some specific network shares, maybe only ones that are ...
4
votes
2answers
20k views

How do I allow all possible IPs for Gmail servers through my ufw firewall?

I am currently using the following rule: ufw allow out from my_local_ip to any port 587 This is a little too lax for my liking. I would like to tighten it up and restrict it to only gmail's smtp ...
8
votes
2answers
6k views

What do UFW's audit log entries mean?

I'm sometimes getting a lot of these AUDIT log entries in ... [UFW AUDIT] IN= OUT=eth0 SRC=176.58.105.134 DST=194.238.48.2 LEN=76 TOS=0x10 PREC=0x00 TTL=64 ID=32137 DF PROTO=UDP SPT=36231 DPT=123 ...