Uncomplicated Firewall is a firewall configuration tool for Linux. It acts as a frontend to iptables. Originally designed for Ubuntu, it is available on many Linux distributions.

learn more… | top users | synonyms

1
vote
1answer
26 views

UFW Enable requires y prompt, how to automate with Bash Script?

I'm trying to automate the setup of UFW on an Ubuntu 16.04 instance. However when I type: sudo ufw enable I get prompted to enter yes or no, is there a way to feed it yes or set it automatically to ...
0
votes
0answers
16 views

Jenkins master node incoming port number for slaves?

I have a Jenkins version 2.8 master node running on Ubuntu 14.04 and my slaves node cannot connect to it unless I disable the firewall via sudo ufw disabled. I have port 8080 already open so folks ...
1
vote
1answer
16 views

UFW 0.35 - Redirect incoming port 2121 to port 21 on VM (other interface)

I'm posting here because I've got a server, and I want to redirect the port 2121 of my main interface (eth0) to the port 21 of my secondary interface (virbr0). This is my configuration : Physical ...
0
votes
1answer
27 views

Configure ssh on Ubuntu 16.04 recovery mode

So I have a dedicated server. My host was able to get me to recovery mode. I am able to log in using ssh. Here's my dilemma. I accidentally changed ssh ports while logged in and forgot to add a rule ...
0
votes
0answers
27 views

Containerized Local Web Server Behind EdgeMax Router

I have an Edgemax Lite router with a couple of machines on a single lan. I have one of the machines set up with Ubuntu server 16.04 running LXD. I want to be able to run applications in containers on ...
0
votes
0answers
71 views

Port-forwarding with openVPN client-server (ubuntu 16.04)

Here is my situation : - I want to set my computer (Ubuntu 16.04) as a VPN server. It has a local IP address 192.168.43.190, and a public IP - I have one raspberry pi as a VPN client, on a DIFFERENT ...
0
votes
0answers
21 views

DHCPv6 not working when UFW is enabled (Ubuntu 16.04 LTS)

So, as the title says, I setup a isc-dhcp-server for DHCPv6, which is working as long as UFW is disabled. Once enabled, though I have all the necessary rules in place, and UFW is enabled for v6, it ...
0
votes
1answer
63 views

Why is UFW not working?

I've setup some rules on my ufw but I think it's just not blocking anything. This is its current status: ~# ufw status verbose Status: active Logging: on (low) Default: deny (incoming), allow (...
0
votes
0answers
15 views

reset ufw without disabling it

I'd like to reset the ufw settings back to the defaults, apply new settings, and only then reload the firewall. While I'm making the changes I'd like the firewall to keep running with its old settings....
1
vote
1answer
51 views

HTTP connections are fast from local network, very slow from the outside world

I setup a Wordpress server in a Raspberry Pi with nginx, MariaDB and ufw. I also setup the No-IP service. When I access the server from my local network (192.168.0.173) I get a fast response but when ...
4
votes
1answer
973 views

How to block an attack on Wordpress using UFW on Ubuntu server?

On ny Ubuntu 14 box I have weird activity looking like attack on Wordpress page. Apache log shows a lot's of this: 191.96.249.54 - - [25/May/2016:00:46:57 +0200] "POST /xmlrpc.php HTTP/1.0" 500 585 "-...
1
vote
0answers
20 views

How do I remove ufw blocked protocol 59 log noise?

The logfile on one of my private servers running Ubuntu 14.04 is being filled with messages of the following form: [UFW BLOCK] IN=eth0 OUT= MAC=[macaddr] SRC=[srcipv6addr] DST=[destipv6addr] LEN=40 ...
0
votes
0answers
34 views

iptables, ufw, and psad - scanned UDP port alerts from router and devices on home network

I have a fresh install of Ubuntu 16.04. I configured iptables, ufw (with gufw), and psad using instructions from https://www.thefanclub.co.za/how-to/how-secure-ubuntu-1604-lts-server-part-1-basics and ...
1
vote
0answers
48 views

How can allow an ssh connection only over vpn

I install OpenVPN on my server following this guide --> https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-14-04 I also setup a firewall with ufw where I add ...
1
vote
0answers
13 views

Can UFW read in rules from multiple files?

I see that UFW (UncomplicatedFireWall) will read in its rules from /lib/ufw/user.rules. However, it would be convenient if the rules could by split across multiple files, so that different servers can ...
0
votes
1answer
109 views

How to configure postfix with ufw so that my web server can send email but it doesn't act as an open relay?

According to this guide: It is important to secure your server and make sure that Postfix is not configured as an open relay. It links to another guide which suggests using UFW as a firewall. I'...
0
votes
0answers
78 views

ssh login timed out after enabling the ufw firewall ubuntu server

I followed digital ocean tutorial to enable the firewall in my ubuntu server. The steps I performed is: 1> change the port no to some other no. (8338) 2> enable firewall using sudo ufw allow ...
0
votes
1answer
39 views

ufw & iptables confusion

I have previously added some netfilter rules via iptables. I'd now like to manage these rules through ufw and to simplify things I wanted to get rid of the current rules and start afresh as if I was ...
1
vote
3answers
40 views

UFW: How to block http requests on another port than 80?

I am running an application on port 7000 which is part of a network. So it has to communicate over port 7000 with all other servers of the network (not LAN, dynamic IPs). It has also a web frontend ...
1
vote
1answer
50 views

Traffic from OpenVPN client to 'self' rejected by UFW

I currently have a single VPS set up with OpenVPN server. My idea behind this setup is that, while developing, I would be connected to server over VPN, which would allow me to access ports on the ...
1
vote
1answer
46 views

Could not bind to additional port for apache via ufw on ubuntu 14.04

I just moved our site to DigitalOcean. Their DNS servers went down. I checked and last time there was a problem involving DNS servers it took 28 hours to fix. We have a consulting gig going at a ...
1
vote
0answers
34 views

OpenVPN connection Time out after connecting to Server

I have set up OpenVPN on my Server and now have problems when connecting to it. As soon as the connection is established I cant use the internet anymore. SSH into the server is still possible. here ...
1
vote
0answers
47 views

UFW blocks permitted ports

I use ufw utility to manage my firewall for the system which runs web and mail services. The rules are follow: Status: active To Action From -- -...
0
votes
2answers
131 views

UFW Forwarding on Port 80 to port 3000 on Single VPS [duplicate]

The following is on a Virtual Private Server online and only one machine. I have tried a number of ideas using UFW on Ubuntu 15.10 to forward an incoming request on port 80 to a simple app I have ...
0
votes
1answer
63 views

How to connect to ftp server from within LAN when the router port-forwards external connection away from it

Sorry for the long question. What it means is this: I am managing a small LAN that is protected by a router. router 192.168.1.1 server 192.168.1.9 client 192.168.1.2 client 192.168.1....
0
votes
1answer
39 views

How do I allow outgoing connections from a service in UFW?

Hey I am using Apache server to power my Python-Flask application. It uses urllib2 which makes outgoing connections requests which are blocked by UFW. How do I allow only Apache to make outgoing ...
0
votes
1answer
73 views

ufw deny from ip doesn't seem to be working

I've been tailing my server's access log while working today, and have noticed one of my client's wordpress sites getting hammered with login attempts from an IP from out of the country. I wanted to ...
3
votes
1answer
44 views

enabling ufw disables some of the settings in sysctl.conf

When I add rules to ufw and then enable it, some of my settings in sysctl.conf become void so I have to do sysctl -p after doing ufw enable. So for example one of my settings in sysctl.conf is to not ...
-1
votes
1answer
237 views

I've installed and enabled ufw firewall, and I cannot connect to my server [closed]

I've installed ufw firewall on my little server, with ssh and web services. But, when enabled, the ssh connection lost, and I could neither connect to the hosted web via web browser. What has ...
3
votes
1answer
33 views

UFW - Rules by Service Versus Port and Protocol

What is the difference between creating allow/deny rules via a service versus a port and protocol? For example: ufw allow ssh versus ufw allow 22/tcp or even, ufw allow ssh/tcp. Which is the 1) ...
5
votes
1answer
108 views

Do I need to open any port for NTP synchronization to work if both outgoing and incoming are blocked on ufw?

One of my production servers, UFW configuration is as follows: Status: active Logging: on (low) Default: deny (incoming), **deny (outgoing)**, disabled (routed) New profiles: skip To ...
0
votes
0answers
28 views

i see an open udp connection on port 50113 on server

I just setup a new server and see an established connection on port 50113 (udp). I do not recall setting up anything on the server that would require port 50113 (tcp or udp). I have ufw/ip tables - ...
1
vote
1answer
116 views

Allow UFW access from IP wildcard

I would like to allow access from IP address based upon wildcards e.g. 64.201.52* How can this be done with UFW? Have tried sudo ufw allow from 64.201.52.*
2
votes
1answer
108 views

How to disable UFW ubuntu externally?

i am using amazon EC2, i enabled UFW in my server and without adding any other rule i logged out. now since there was no rule specified, i am not able to login to ssh and because of it even my website ...
1
vote
1answer
164 views

Timeout error on MariaDB in Docker container

I have an ArchLinux installation with Docker and MariaDB running in a container. Now when I try to connect to the database, I get the following euro: MySQL said: Can't connect to MySQL server on '$...
0
votes
1answer
101 views

ufw without connection tracking

I am using ufw on a high traffic webserver (lot of http/https traffic) on ubuntu (12.04 or 14.04). I tried tuning kernel parameters related to connection tracking with some success. However, ...
0
votes
0answers
23 views

How to configure UFW to deny outgoing traffic on all ports except a few ones I specify manually?

Sounds simple but it does not look like it is with UFW. Does anyone know how to do that without having to specify thousands of lines?
0
votes
0answers
7 views

Can not enable ufw in ubuntu VPS 14.04 [duplicate]

When I run following command sudo ufw disable It does not work. Got following errors ERROR: problem running ufw-init modprobe: ERROR: ../libkmod/libkmod.c:507 kmod_lookup_alias_from_builtin_file()...
1
vote
1answer
151 views

Ubuntu 14.04 TCP established hash table entries

A bit of background I am running two servers under high traffic one with ubuntu 12.04 (linux 3.2.0-69-generic) and one with ubuntu 14.04 (linux 3.13.0-52-generic). I am now trying to secure both. ...
0
votes
0answers
201 views

OpenVPN with UFW [ TLS Error: TLS handshake failed ]

I installed Openvpn in my server which already had UFW installed i enabled ip forward in vi /etc/sysctl.conf applied changes using sysctl -p I also enabled forwarding using echo 1 > /proc/sys/net/...
0
votes
0answers
68 views

Block ipv6 range in UFW

I have a Ubuntu server running UFW as a firewall. Since a couple of days a Chinese ipv6 address keeps scanning my server over and over again. My visitor analytics software shows anonymized ip ...
0
votes
1answer
714 views

Postfix + Dovecot + IMAP SSL: imap-login: Aborted login

Am getting familiar with email Mail Server components and configuration. Knowing that there have been quite a few configuration changes to Dovecot 2.x and willing to use SSL encryption, I have come ...
0
votes
0answers
228 views

UFW Router default deny routed and ufw rules

I have an ubuntu 14.04 server running as my internet gateway in front of a dmz and a second ubuntu 14.04 server running as a router between my dmz and internal subnet, both using ufw in front of ...
1
vote
0answers
287 views

Docker's iptables=false option seems to have not the desired behavior

Good morning at all. I am running Ubuntu 14.04 server and Docker 1.8.1 and UFW is my front-end to manage iptables. I need to run an application into a container. I do need the following behavior: ...
1
vote
1answer
170 views

ufw port forwarding not working

I'm trying to set up an ubuntu 14.04 server as a router that also does some port forwarding. I've got the router part working but cannot for the life of me figure out why the port forwarding isn't ...
0
votes
0answers
166 views

UFW - Set correct kernel params

As every system administrator does, one of the first things i did right after booting up my web server was install ufw and tune/set kernel parameters in /etc/sysctl.conf. By the way, this is my /etc/...
1
vote
1answer
278 views

Forward SSH to OpenVPN client via UFW

I have an Ubuntu 14 server that is running OpenVPN gateway and ufw. Let's call it Server A. I have an IP reservation for a permanently connected server (Server B). It always connects to OpenVPN and ...
2
votes
1answer
121 views

Does order of UFW rules matter?

When I first initialized my ufw, I did ufw default allow outgoing ufw default deny incoming ufw allow 80/tcp ufw allow 22/tcp Over the last week or so, I've been going through my access logs and ...
0
votes
0answers
90 views

UFW blocking open ports until manual reload

I'm having a hard time getting my head around this ufw issue I'm having. Here is the output of ufw status verbose: Status: active Logging: on (low) Default: deny (incoming), allow (outgoing),...
0
votes
1answer
79 views

UFW insert [number] throws error

Using Ubuntu server 14.04LTS I want to configure my UFW to limit ssh connections with the following command: sudo ufw insert 1 limit ssh/tcp which throws an error: ERROR: Invalid position '1' Due ...