Uncomplicated Firewall (ufw)

learn more… | top users | synonyms

0
votes
1answer
49 views

UFW & VPN : How to allow reconnection

Here are the rules of my firewall : deny outgoing deny incoming allow out from any to any on tun0 (alow just the traffic from the VPN) However, I am forced to disable ufw when I want to start my ...
0
votes
0answers
11 views

UFW blocking 169.254.0.0 (link-local / apipa) addresses?

When using iftop on my wlan0 interface, there are a few link-local addresses connecting. How and where can I filter these connections? I have very specific UFW rules blocking 169.254.0.0/16, but I ...
0
votes
0answers
24 views

Should I add fail2ban to the following security setting?

I apologize if this is not the right forum, I am new to the StackExchange communities and Linux in general and it seemed like it could belong in a few different ones. I am using a VPS running ...
0
votes
1answer
31 views

ufw port accessible locally but not remotely

I am trying to access an application on my server I have running on port 8000. From the server I can access the application via curl mydomainname.com:8000 from any other machine I just get curl: (7) ...
2
votes
1answer
25 views

How to run 'ufw' without interactive mode?

I want to run ufw Uncomplicated Firewall from python script but it usually runs in interactive mode. Example: subprocess.check_output(["ufw", "enable"]) Has the following output: 'Command may ...
0
votes
1answer
23 views

Ubuntu 12 ufw not allowing connections even if it says Anywhere?

Currently I can't seem to connect to my Ubuntu 12.04 server unless I disable my ufw or if I do a "ufw allow ip_address". When I do a "ufw status" I get the following: I deleted the allow my ...
0
votes
0answers
36 views

unable to start (Ubuntu server 14.04) iptables service it show “Unrecognized service”

Ubuntu server 14.04 iptables service start shows: Unrecognized service
0
votes
1answer
45 views

UFW blocking connection every minute at home [duplicate]

I'm using a router to connect to the internet at home. I used a long password with WPA2/AES, changed the SSID and changed the default password. But strangely, even if I disconnect the router from the ...
1
vote
0answers
57 views

Why can't I connect to my localhost port from a remote computer?

I'm using link-grammar server to convert sentences into semantic graphs. It provides an API though a port to do the above process. It's configured to works through port 9000 of localhost. I used to ...
0
votes
0answers
38 views

Problem running ufw on Ubuntu 14.04 server

ufw is supposed to be the easy firewall for Ubuntu, but I seem to still having missed something. After a fresh install on my 14.04 server, and leaving it default, the terminal will freeze after ...
0
votes
0answers
71 views

ufw on ubuntu doesn't work, how to deactivate plesk firewall?

Since I'm a totally newbie to server stuff but I needed to set up a vServer, I let install Ubuntu 14.04 AND Parallels Plesk on it. Now, I think it would have been better to install Ubuntu without ...
0
votes
1answer
85 views

No UFW logs at syslog

I'm using here the UFW as a basic protection. When I'm using the wi-fi from the college I get some UFW block (which is normal, because the firewall is ON). But strangely, I'm not getting any UFW logs ...
0
votes
1answer
73 views

Configure UFW to allow only established and related conections (on IPv4)

I want to configure ufw to deny everything except the related and established connections. On iptables I usually did : -P INPUT DROP -P FORWARD DROP -P OUTPUT ACCEPT -A INPUT -m state ...
0
votes
1answer
48 views

UFW wont delete rule

I was testing something and added a rule to my firewall to allow port 9000. in retrospect, I should have just disabled it temporarily. anyhow, I went to remove the rule and it wont let me, it says ...
2
votes
1answer
206 views

Why does my firewall reset upon reboot?

I host gameservers on my dedicated server and was setting up the firewall a few days ago (had to set everything up again, hard drive failed and I forgot to back-up). Everything ran fine, firewall ...
1
vote
1answer
102 views

UFW - How to make it easier and what are stealth ports can UFW have these? [closed]

Let me show u what I jusat wasted 2 hours doing: To Action From -- ------ ---- 22 REJECT Anywhere 23/tcp ...
0
votes
1answer
45 views

After I installed UFW ssh login very slow

I'm wondering if I made a mistake or if this is the normal case. I turned off password based ssh login and changed it to RSA key exchange. After that I changed the ssh port and then I installed UFW. I ...
2
votes
1answer
385 views

ERROR: problem running ufw-init

I tried setting up ufw on my remote Ubuntu 14.04 server so i installed it and allowed ssh with the command sudo ufw allow ssh after that I tried to enable ufw but I get the following error: ...
0
votes
0answers
53 views

Firewall Config to get access to ports via eth0

My headless ubuntu Server has an OpenVPN client that connects to a gateway provided by PIA. I gathered some settings provided here to basically setup kill switch I have a domain that redirects to ...
0
votes
0answers
57 views

SSH UFW: ERROR: Could not find a profile matching 'ssh'

I am installing a new server. I am using ssh to connect but when I try to install ufw and allowing ssh: sudo ufw allow ssh I get ERROR: Could not find a profile matching `ssh` It is kind of ...
0
votes
1answer
117 views

How can I allow ap-hotspot in ufw Ubuntu 14.04?

When ufw is enable android stuck in obtaining ip address and cannot connect to wifi. I try sudo ufw allow dhclient and sudo ufw allow dnsmasq bot both had ERROR: Could not find a profile matching ...
0
votes
0answers
36 views

I don't have a port allowed in UFW but still able to access server CP at it

Default of firewall (UFW) is to deny all that isn't allowed well 8083 isn't allowed but i'm still able to access the control panel with https://serverip:8083 Status: active To ...
1
vote
1answer
167 views

Configuring NAT with ufw instead iptables

I want to apply this iptables rule: iptables -t nat -A PREROUTING -d 87.13.180.182 -j DNAT --to-destination 192.168.0.13 (87blabla is my public ip and 192blabla is my private ip). People ...
0
votes
0answers
147 views

NFS+ufw+Autofs not working

Setup: Client server running Ubuntu 14.04 connecting to another Ubuntu Server 14.04 on NFSv4 on a local LAN. I have the firewall turned on, with routing rules to allow 192.168.42.0/24 (from/to any). ...
0
votes
0answers
100 views

KVM client only has internet with ufw disabled

I have just installed a client OS (Windows 7) using libvirt and everything is fine. I have bridged an interface (br0) for my guest OS and I can ping my entire local network but I don't have internet ...
1
vote
0answers
48 views

Is this ufw configuration correct?

I have to link my openstack private cloud on a cloud management platform online. The cloud location is on my private ip (192.168.0.9) , i can't use that ip since the platform need a public ip so i ...
0
votes
0answers
48 views

Allowing Longview in UFW firewall; how do these iptable rules translate to UFW-commands?

Linode has some documentation on allowing its product "longview" to go through the firewall. It offers two commands for iptables: iptables -I INPUT -s longview.linode.com -j ACCEPT iptables -I OUTPUT ...
1
vote
1answer
49 views

How do I use Juju local with a firewall?

While using ufw (Uncomplicated FireWall) and I noticed that the local juju machines were stuck in a pending state. $ juju status environment: local machines: "0": agent-state: started ...
0
votes
0answers
67 views

Do I need to create a firewall rule after installing Android Studio?

Since I installed Android Studio, I have a new network device: virbr0. My system log files keep telling me ufw rejected an incomming connection (one time per minute) wich is kind of annoying because ...
0
votes
1answer
95 views

ubuntu server 14.04 port 21 keeps closing

I have got a problem with port 21, which keep closing. I am using proftp and ufw and set port 21 to internal network only. This works fine, however, after a few hours or days (not sure on time ...
0
votes
1answer
38 views

Ubuntu server drop ping for specified interface

I am searching for a possibility to drop the ping packets for my ppp0 interface, but allow them for eth0. I use ufw know that i can reject ping by changing lines in /etc/ufw/before.rules But thats ...
0
votes
1answer
259 views

UFW not enabled at startup

I have enabled the UFW in terminal using "sudo ufw enable" ... But, UFW does not appear to start when the computer starts. After the computer starts, I check the status of the UFW using "sudo ufw ...
1
vote
1answer
572 views

UFW Ctrl-C and iptables: Chain already exists

I did a dumb thing, so bear with me. While running a ufw command to add a rule, I did a Ctrl-C, this led to the problem of the following error being generated every time I try to use UFW: ERROR: ...
0
votes
0answers
25 views

Using ufw as a firewall between network segments

I've been using Ubuntu server 12.04 as a router and it worked. Now I'm trying to add some security using ufw. I enabled the ipv4-forwarding feature in the configuration file and added a rule ...
1
vote
1answer
3k views

UFW is blocking all even when I set rules to allow

I am using an ubuntu server, Now I am trying to enable the firewall using these commands: ufw default deny incoming ufw default allow outgoing ufw allow ssh ufw allow www ufw allow https ufw enable ...
1
vote
0answers
36 views

What is UFW's approach towards rules order for overlapping rules?

I need to enable UFW in my Ubuntu 14.04 Server having these conditions: - I want to deny all incoming and outgoing on all ports (and protocols) but: - I want to allow all incoming and outgoing on a ...
2
votes
2answers
311 views

How to check if ufw is running programmatically

In most services (e.g. privoxy) there is a clean way to get the service status: ps -C [servicename] Then by checking the exit code ($?): 0: the service was running 1: not running This is not the case ...
0
votes
1answer
441 views

UFW blocks traffic in NAT

I've created a VM guest with libvirt with the default NAT Bridge. (Host and Guest Ubuntu 14.04 Server) After creating allow rules for SSH and enabling ufw - on the guest - i can't connect to the ...
0
votes
1answer
779 views

How to open ports 25, 80, 443, 3306 on Ubuntu 10.04

Fresh install of Ubuntu Server LTS 10.04 on a Rackspace next gen (Performance) server needs the following ports open: 25/tcp, 80/tcp, 443/tcp, 3306/tcp. I used nmap to check for open ports, here is ...
1
vote
1answer
966 views

using ufw to block outgoing traffic to website

I want to block traffic to a specific domain e.g. mysite.com. I tried blocking the ip address of the site but it does not work: ufw deny from 0.0.0.0 to ip_address_of_site I am still able to acess ...
0
votes
1answer
219 views

How do I remove all the ufw chains from iptables?

I've removed ufw and I want to get rid of all the chains it leaves behind. How can I do that easily?
0
votes
0answers
47 views

Writing exceptions in ufw to the default forwarding policy

I've tried setting DEFAULT_FORWARD_POLICY in /etc/default/ufw to both REJECT and ACCEPT and then writing rules to create exceptions to the default forward policy. No matter what I do, it appears to ...
0
votes
1answer
241 views

Setup NAT on Ubuntu 14.04

I'm trying to insert my desktop between an appliance and the rest of the network to monitor the traffic coming off of it due to some security concerns. I'd like to setup NAT so that the devices behind ...
1
vote
0answers
2k views

UFW for OpenVPN

I want to configure ufw (uncomplicated firewall) for OpenVPN. Connections are only allowed through OpenVPN. Everything else should be blocked. So if OpenVPN is disconnected -> no internet! I found ...
3
votes
1answer
382 views

ufw not blocking traffic

I have an apache2.4 webserver, and I am trying to block a malicious subnet using ufw. Here is the UFW setup: $ sudo ufw status verbose Status: active Logging: on (low) Default: deny (incoming), ...
0
votes
0answers
80 views

Multiple rate limits in ufw

I have set two rate limits in ufw: In summary: limit http to 120 requests in 60 seconds; and 600 requests in 600 seconds -A ufw-user-input -p tcp --dport 80 -m state --state NEW -m recent --set -A ...
1
vote
1answer
446 views

Whitelist IPs for ufw

I have set some rules in ufw to rate limit connections, as such: -A ufw-user-input -p tcp --dport 25 -m state --state NEW -m recent --set -A ufw-user-input -p tcp --dport 25 -m state --state NEW -m ...
0
votes
0answers
24 views

How to configure ufw to allow ruby gem installs on 12.04?

I have the following setup: To Action From -- ------ ---- 10022 ALLOW IN Anywhere 80 ALLOW IN ...
0
votes
0answers
132 views

UFW behind a router blocks traffic from the outside world

I'm seeing [UFW BLOCK] entries in my logs, where SRC=173.194.67.16 DST=192.168.1.2. My box is behind a router, DST is my internal IP, SRC seems to some Google server and I don't understand how is it ...
1
vote
0answers
63 views

problem with UFW

Following this tutorial I executed the following commands: sudo apt-get install ufw sudo ufw allow ssh sudo ufw allow http sudo ufw enable sudo ufw status verbose and I get: Status: ...