Questions tagged [ufw]

Uncomplicated Firewall (ufw)

Filter by
Sorted by
Tagged with
0
votes
0answers
13 views

UWF how to and not working

How do I use UFW for firewall and how can I see if it is working, I don't think it is, I tried to block my computer from accessing my website using ufw and it still allowed me to access it. I am using ...
-1
votes
0answers
17 views

UFW Firewall Rules Help

Can't seem to find much help on this or at least some information I can understand. I need to create some rules for the following but not sure exactly how to write these. Both incoming and outgoing ...
-1
votes
1answer
38 views

UFW Rule - Deny Routes

I want to deny all outgoing traffic except to a specific address/address range. I attempted: $ ufw default deny outgoing $ ufw allow from x.x.x.x to any $ ufw allow to x.x.x.x from any However, ...
0
votes
0answers
15 views

How do I block ips from accessing my sever with UFW

I want to try to block my computer's IP (192.168.0.3) as a test from accessing anything on my server, and more importantly, my website, when I use ufw deny 192.168.0.3 it says Rule added, After ...
2
votes
1answer
60 views

Ufw don't working ERROR: not enough args

I have installed ufw and gufw in Ubuntu 18.04 with XFce4.12 environment. I was exploring its configurations, then I looked for some tutorials to configure it and when I run sudo ufw it returns this to ...
0
votes
0answers
22 views

ssh connection stays active even after I delete the UFW rule

I'm on debian buster (10), headless. I setup ufw rules to allow ssh from certain IP's only, that works, I can ssh in , I stay logged in.... From a console, I delete the rule, but from the ssh ...
0
votes
0answers
20 views

UFW not denying Samba

Searched everywhere, but no one admits this. New ubuntu 18.04 with samba installed, and working from win10 to share on ubuntu. Applying sudo ufw deny samba, and sudo ufw deny incoming, but win10 can ...
0
votes
0answers
18 views

how to use UFW with vrf-interfaces on ubuntu 18.04/20.04

I configured vrf's on ubuntu 18.04 and 20.04, default install and enabled SSH service. When UFW is disabled, I can connect to ssh via eth1, once UFW is enabled ssh access via the vrf-interface IP does ...
0
votes
0answers
14 views

Setup Firewall rule that will allow only Squid proxy

I am using Ubuntu 19.10. I just jus want that only some selected applications get internet acces, So i've installed squid proxy and configured the application to 127.0.0.1:3128 I've checked the log ...
0
votes
0answers
49 views

Forwarding ports on remote OpenVPN machine with UFW

I am trying unsuccessfully to setup port forwarding on a remote machine over an OpenVPN connection. Diagram: ---------------------------------- ---------------------------------- |...
0
votes
1answer
39 views

ufw NO ipv6 after enabling firewall - Essential Rules

There is a loss of ipv6 connectivity as soon as I enable ufw I am behind a 6router using dhcpv6 and need global connectivity. It uses 6to4 to acquire its 6ip. I DONT want to allow IN/OUT ALL from ...
0
votes
1answer
33 views

What does the firewall in ubuntu 20.04 do when i activate it?

I just installed Ubuntu 20.04 and found that the firewall is inactive. Input: sudo ufw status verbose Output: Status: inactive What is verbose and ufw ? Why is it not activated by default? What ...
0
votes
0answers
10 views

Can people access traffic on a port if ufw status shows inactive?

I'm using Ubuntu 18.04. I want to open my firewall to traffic on a port. I'm confused about what will happen. I tried this davea@chicommons-laboratory:~$ sudo ufw allow 4415/tcp Rules updated ...
1
vote
1answer
28 views

UFW rule to allow LAN traffic

I have UFW setup and enough rules to allow me to be able to do what I need to do on a regular basis except for one thing. To be able to access anything on my LAN (NAS, printer, Chromecasts, etc.) I ...
0
votes
0answers
14 views

Setup network access for Elasticsearch on Ubuntu running on parallels

I have an instance of ubuntu server running version 20.04 installed on parallels on a Mac however I am unable to access it from other devices on my network, only from the instance of ubuntu. ...
0
votes
0answers
60 views

UFW rules for Windows network share in 20.04

I have always had a network share with my nas (Alt-F) setup in Ubuntu. To access it I allow port 137&138udp in and out and 139&445tcp in and out within ufw. Since upgrading to 20.04 those ...
0
votes
0answers
25 views

Service not reachable without port forwarding

I am quite new to the linux server admin stuff and I did play around quite a while now. I try to open only three ports to the public: 80, 443 and 943. After connecting via VPN, I want to expose SSH, ...
0
votes
0answers
14 views

Block web traffic on ubuntu server

blocking web traffic on ubuntu server 20.04 doesnt seem to work fully. So im using a vultr server with ubuntu 20.04 and have an openvpn server installed via this page which has installer script; ...
0
votes
1answer
52 views

Creating/importing iptables rules to ufw

Thank you very much for your time in reviewing my issue. I am currently trying to convert the following iptables to ufw: iptables -A INPUT -p tcp -s 127.0.0.1 --destination-port 443 -j ACCEPT ...
0
votes
0answers
45 views

UFW kill switch with exception for port 180

So, I have a Ubuntu Server 18.04 that is connected to my home network, but uses a VPN. In order to block internet access, I blocked all connections of UFW like this: - First all IPv6 connections were ...
0
votes
0answers
22 views

how to set ufw in my computer inorder to make my computer server in lubuntu

how to set ufw in my computer inorder to make my computer server in lubuntu and how to portforward in ufw i am using apache as server it is not working with public ip address i tried a lot to open ...
0
votes
1answer
16 views

UFW won't start with server

I'm configuring a new server with ubuntu-server. UFW doesn't want to start automatically when server boot. ufw enable work and start the service but it doesn't restart with a reboot. Do you any ...
0
votes
0answers
41 views

firewalld vs iptables

I have read on the internet that firwalld or ufw are the frontends of iptables, but I'm wondering why when start firewalld in my system iptables stop, and when I start iptables firewalld stop ?! ...
0
votes
1answer
32 views

IPSEC site-to-site overlaping networks

we have two sides connected over ipsec using strongswan. both machines ubuntu 16.04 servers. the issue is both end subnets are overlapping. we have tried all possible iptables scenarios to map ...
0
votes
0answers
34 views

qBittorrent bypassing UFW

I am trying to use UFW as a VPN kill switch but I don't seem to be able to block qBittorrent traffic. Even if the only rules in UFW are to block all in and out connections, qBittorrent can still ...
0
votes
0answers
47 views

Am I Writing UFW Rules Right?

Attempting to write commands for these rules: Deny all traffic from 10.1.5.7 Deny all traffic from IP addresses in the range 64.1.1.0 to 64.1.1.255 Deny access to UDP port 1500 from host 5.6.7.8 ...
0
votes
0answers
56 views

System Freeze UFW OPENVPN Network Timeouts

Problem My computer randomly freezes (does not accept any input anymore, mouse pointer is frozen) or shuts down (not completely, it "hangs" so that even pushing the reset button won't restart, I then ...
1
vote
0answers
20 views

How do I remove a previously “allowed” application profile from Ufw?

I've been messing around writing different application profiles for Ufw to get it to work properly, but I can't figure out how to completely and correctly remove an application profile that I ...
0
votes
0answers
30 views

Port opened with ufw shown closed by nmap

I need to open port 465 on my PC. I ran the following succesfully. root@user:/home/user# ufw allow 465 Rule added Rule added (v6) But when I scan with nmap. I get- root@user:/home/user# nmap -p465 ...
0
votes
0answers
39 views

How can I setup Ufw to be able to connect to a windows network shared folder using the hostname of the machine?

How can I setup Ufw to be able to connect to a windows network shared folder using the hostname of the machine? Connecting to the machine by IP does work. I'm on Ubuntu 16.04. Tried so far: Opened ...
0
votes
1answer
39 views

How do I find out which ports I need to open in my firewall to get Samba working?

I want to be able to access a shared folder on a windows 8 computer from my Linux computer. Everything works fine when Ufw is turned off, but as soon as I enable the firewall it won't work. How do I ...
0
votes
0answers
46 views

MSSQL Linux Problems, port 1433 status opened from ufw, but still cannot remote or even telnet

I have problem with MSSQL in Linux, and i'm installing it on Ubuntu 18.04 linux, im already open port 1433 and 1434 via ufw but still have no luck with remote connection and even from telnet, here my ...
0
votes
0answers
22 views

Why UFW dont deny

I have ufw running on my ubuntu 16.04 server. I am fairly new on firewalls and try to allow access to a port only from my own IP. but I can reach it from anywhere sudo ufw status verbose Status: ...
0
votes
0answers
48 views

Unable to SSH but need to open ubuntu terminal to fix

I was setting up my Apache server in Ubuntu 18.04 while checking the Firewall, I used some command like: sudo ufw allow enable ... like that and didn't enable ssh, post which my SSH is not working. ...
1
vote
1answer
26 views

Is this a valid ufw rule or wrong syntax

Can I use a rule like this in ufw or it is impossible? Sudo ufw allow from any to ip 1.1.1.1 port 5001:5999 Regards Anders Yuran
0
votes
0answers
21 views

Virtual interface

I have a vps with a provider. It has 2 interfaces eth0 and eth0:1, each with one ip. One ip has normal web rules. The other one I want to restrict to only accept traffic to port 5001-5999 Regards ...
0
votes
0answers
29 views

vsftp and ufw problem

I'd like to be able to activate ufw in order to protect my system, but every time I do, I can't send stuff to my system via vsftp. If I deactivate ufw everything works fine. If I activate it, I can ...
0
votes
1answer
21 views

How setup a rule in ufw?

I have a vps with two ip addresses. The nics are Eth0 and Eth0:1 How do I setup a rule that allow all traffic on Eth0:1 to only use ports 5001-5999 Regards Anders Yuran
0
votes
0answers
203 views

getting error problem running iptables when checking ufw status

when I check ufw status on ubuntu I get the following error. ufw status [sudo] password for rock: ERROR: problem running iptables: iptables v1.6.1: can't initialize iptables table `filter': Table ...
0
votes
0answers
17 views

Setting up simple deny ufw rule on 1 nic only

So have a machine with multiple NICs and I'd like to allow all traffic on most of them (which are on private networks) but deny almost all traffic on one (wlp3s0). So I did the following: sudo ufw ...
0
votes
0answers
447 views

sudo apt-get update not working. Err:1 http://archive.ubuntu.com/ubuntu bionic InRelease

I have tried installing the package "httpd" on Ubuntu but it always fails. I read a lot of tutorials on how to install "Apache" on my computer. I found that after performing these tutorial operations, ...
2
votes
2answers
51 views

Is there anyway to block http on port 443 using ufw

How can I configure ufw so that it blocks any connection to port 443 using the http protocol, but not the https protocol. So what I mean is: http://example.com:443 (Deny any connection) https://...
1
vote
0answers
179 views

Ikev2 Strongswan vpn: UFW doesnt route internet traffic

I installed a strongswan ikev2 vpn many times on ubunut without problems. But now on a fresh installed ubuntu server I cant get it to run. Connect to the vpn does work but I cant get a internet ...
1
vote
1answer
49 views

Error: bad port during put port range

I try to allow port using ufw like below but error:bad port appears test:~# sudo ufw allow 45000:65536/tcp ERROR: Bad port
1
vote
1answer
36 views

How do I limit access to a service/port by IP address?

I'm running something on port 3000 and I want to offer this service on port 3000 only to specific users (by IP address). How do I do that? Is that done with ufw or iptables (both of which I know ...
0
votes
0answers
20 views

SSH Across Networks

my network looks like this: DD-WRT (10.0.0.1) -> MAAS (10.0.0.2 && 10.11.0.1) -> KVM Host (10.11.0.2) I’m wondering how I can connect to KVM Host from another computer connected to the DD-...
0
votes
1answer
79 views

Why is ubuntu connecting to a bunch of servers in the background

I just switched from Windows to Ubuntu and on Windows I was a Glasswire user. I like to monitor all my traffic and really like the idea of every program having to ask permission to connect to the ...
0
votes
0answers
54 views

Closed Port with Transmission

Quite new to ubuntu so still learning. I'm trying to get transmission working but it shows that 51413 is closed. I'm just looking at the settings in Transmission and under Network > Peer listening ...
0
votes
0answers
21 views

UFW - to MSSQL server - port forward

I have a gateway node with UFW running. (public ip and internal ip_ I have set up the DNAT to forward port 1433 to the ip address of my database machine (which is behind this gateway node) I still ...
0
votes
0answers
190 views

nmap shows port 8080 is filtered even though it's opened. How can I open it?

I am using Ubuntu virtual host to run a tomcat based application that uses the port 8080, 8009, and 8000. The network admin has already opened the ports and when I run nmap on localhost it shows that ...

1
2 3 4 5
11