Questions tagged as ['firewall']
After updating to Ubuntu 20.04 LTS internet stopped working without VPN (I use Cloudflare WARP)
righthaze@desktop ~ ping google.com PING google.com (220.127.116.11) 56(84) bytes of data. ping: sendmsg: Operation not permitted ping: sendmsg: Operation not permitted ping: sendmsg: Operation not permitted ^C --- google.com ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time ...
it might seem somehow unusual, but I would like to have a whitelist ip address list for outgoing connections in my firewall
it seem like afer 30 entries of ip-range the list was full, unable to hold any more
is there a solution
like eg /etc/hosts.out.allow
After my Wi-Fi is connected and my data stays on, I am unable to access the Internet. I get:
This site can't be reached, try checking the proxy, firewall, and dns configuration".
What can I do please? It’s been two weeks now.
I'm trying to setup an IP forward. Cannot manage to make it work. The goal is to receive a connection on interface1 (IP on this interface is 192.168.101.3) port 4443, and send it through interface2 to IP 192.168.4.5 (dest IP) port 4443.
- I enabled "net.ipv4.ip_forward = 1" in /etc/sysctl.conf
- setted DEFAULT_FORWARD_POLICY="ACCEPT" in /etc/default/ufw
- added that to /etc/ufw/before.rules (from various tut ...
I setting up machien for connect to postgresql remotly I check somthing and it's apeare all things is correct
Checking the port status :
$> sudo netstat -tulpn | grep LISTEN | grep 5432 tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN 18134/postgres
Checking the firewall
$> sudo ufw status | grep 5432 5432 ALLOW Anywhere
Ping inside machine work :
$> telnet 185.235.x.x 5432 Connected to 185.235.x ...
I have a question regarding remote access a machine via ssh. I'm trying to ssh login to my linux machine from my mac and I already setup the ssh-server on my ubuntu, opened the 22 port and firewall. However, I got these error message while connecting
[@Ges-MacBook ~]->ssh <username>@<remote machine's ipv4> -vvv OpenSSH_8.6p1, LibreSSL 2.7.3 debug1: Reading configuration data /etc ...
I created a ubuntu server today, and everything was working nicely, even managed to change the port. Couple hours later, I cannot use "ssh -p 2606 firstname.lastname@example.org", only "ssh -p 2606 email@example.com" (fictional adress).
When running "ssh -p 2606 firstname.lastname@example.org" I get the error message "ssh: connect to host 192.168.1.4 port 2606: No route to host", when running "ssh -p 2606 dragos@37 ...
I am new to Ubuntu firewall and I have Ubuntu 20.04 server.
All ports 8080, 81 ... are externally available, but when I tried
telnet IP 80 I received
telnet: Unable to connect to remote host: Connection refused
ufw status verbose is:
Status: active Logging: on (low) Default: deny (incoming), allow (outgoing), deny (routed) New profiles: skip To Action From -- ...
After ubuntu 20 installation I installed firewall with main options:
hoster@hoster-laptop:/project$ sudo ufw allow ssh Rules updated Rules updated (v6) hoster@hoster-laptop:/project$ sudo ufw enable Firewall is active and enabled on system startup hoster@hoster-laptop:/project$ sudo ufw default deny incoming Default incoming policy changed to 'deny' (be sure to update your rules accordingly) hoster ...
I am a beginner in the field could you help me please
I would like to block ping from user1 to user2 using iptables from my ip
So I made this:
iptables -t filter -A INPUT -p icmp -s 192.168.15.14 -d 192.168.15.12 -j DROP
But it doesn't work, in fact I don't even know if it's really possible to block ping from another ip ...
I use ubuntu 18.04. I cannot ping google.com from my ubuntu terminal nor make REST API calls from my Ruby On Rails console since a few months. The only relevant change I made on my laptop is to install ExpressVPN on my linux machine. Here are few things I tried.
- ping google.com on ubuntu laptop with "Ethernet from router-1" - Not Working
- ping google.com on ubuntu laptop with "WiFi from router -1" - No ...
On windows platform I always use netpeeker for having an eye on my network activity. It allows to see any process that have outbound connection or listening on any port plus each process bandwidth usage. Another feature is when I double click on any process it shows which port(s) the process using and what address/port is connected and finally the most interesting part for me is ability to define rule t ...
I'm new to Ubuntu and to try it out I've installed the Ubuntu app from Microsoft store and running it on my windows 10 laptop, I tried to enable the UFW but I got this:
:~$ sudo ufw enable ERROR: problem running ufw-init iptables-restore v1.8.4 (legacy): iptables-restore: unable to initialize table 'filter' Error occurred at line: 1 Try `iptables-restore -h' or 'iptables-restore --help' for more ...
I am running Ubuntu 20.04.3 LTS 64-bit
My local network IP has been DMZ and the port i'm looking to use is forwarded.
when I start my NodeJS process, it is listening on ip 0.0.0.0 on the selected port.
sudo netstat -tulpn I get the confirmation.
> tcp 0 0 0.0.0.0:9998 0.0.0.0:* LISTEN 11480/node
Now when I run
ifconfig I get this output
docker0: flags=4099<UP ...
A few weeks ago I was able to browse any WEB page from FireFox on my Ubuntu 20.04 desktop system. Now some WEB pages time out. For example, no problem accessing askubuntu.com, but I time out trying to reach one of my own WEB pages hosted on GoDaddy (for example http://magic.kayaker.net/Terrain/). If I plug my Windows 10 laptop into my same LAN next to this Ubuntu system, the laptop can reach any WEB pag ...
I am on Ubuntu 18.04, I am trying to run
python -m http.server 8080
and everything works, I can connect to the server from other computers
but if I change the port to:
python -m http.server 8501
I cannot connect to the server...
I tried disable
sudo ufw disable to allow port 8501, does not work
I tried the
netstat and it says the system is listen on
iptables didn't find anythin ...
I’m running a virtual Ubuntu (14.04) box, using Vagrant, on my Mac Big Sur machine. I would like to open port 1234 on my virtual machine to my Mac. From the virtual machine, I can see these ports listening
$ sudo lsof -i -P -n | grep LISTEN [sudo] password for myuser: mysqld 1425 mysql 19u IPv4 21538 0t0 TCP *:3306 (LISTEN) sshd 1447 root 3u IPv4 24616 0t0 TCP ...
ufw is enabled and only permits ssh and wireguard:
# ufw status Status: active To Action From -- ------ ---- 22/tcp ALLOW Anywhere 51820/udp ALLOW Anywhere 22/tcp (v6) ALLOW Anywhere (v6) 51820/udp (v6) ALLOW Anywh ...
I need to configure a firewall using iptables that only allows incoming traffic to the openssh services and block all other traffic. I know how to block all incoming traffic but don't know how to only allow incoming traffic to the openssh and block all other incoming traffic simultaneously. I also need the ssh to be logged as "ssh traffic" and all the other blocked traffic to be logged as "blocked traff ...
So I have Ubuntu 20.04 with a wired ethernet connection. I have noticed one day that web browser could not load anything so I checked my internet in the settings and it said that I have a connection, so I checked the ufw (which has disabled my browser before) and it too was not it (but I made sure using
ufw disable and also checking the gufw, which is the gui version without the terminal). So I tried ...
I have a list of ip's (almost 55K) that i want to deny from a text file. I would like a script to read from the text file and update the ufw status.
Is there anything like that?
At present I am doing this
while read line; do sudo ufw insert 1 deny from $line to any; done < filename.txt
This takes a hell long of a time. Would a script be faster?
I have successfully created diskless Ubuntu system instance via this community help page and it works perfectly. However, I would like to enable firewall with UFW and when I tried to do that the problem appeared.
As part of the tutorial on help page I prepared complete "filesystem" with other installation and already bootstraped OS with my settings there (installed necessary packages, changed con ...
We've tried setting up a plex server on two occasions, and both of these times we've run into trouble where the commands for allowing ports on the firewall does not work, so we end up downloading the firewall UI from discovery.
After just downloading the application, what happens is that we lose internet access, and we have to execute :
sudo ufw reload
everytime we start these computers.
It's real ...
to keep the PC safe, I installed firewall-configuration from Ubuntu software:
As soon as the installation was over, I lost the WiFi connection (and even Rstudio cannot connect with R, by the way). I removed it with
sudo apt-get remove firewall-config but the WiFi is still dead.
How can I reestablish the wifi? and do I need a firewall in ubuntu? and an antivirus? (if yes, is clamAV OK?)
I was sending requests to my server using postman. Then, something went wrong and all of my requests were blocked. Now, I can't send requests or even access the server using the IP address unless I use a VPN.
I am a student learning and I am pretty lost — I don't know where to start. I searched for hours on how to reset UFW and disable and enable and even adding new rules didn't work. Below is ...
yabesh@LAPTOP-DLAQ7R33:~$ sudo ufw status ERROR: problem running iptables: iptables v1.8.4 (legacy): can't initialize iptables table `filter': Table does not exist (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded.
I inst ...
OS: Ubuntu Server 18.04 Software: *Claris Filemaker Server 19(Installing Java automatically with needed other *dependancies) / *360Works Mirrorsync 6 / *Tomcat 9
I run fms(Filemaker Server) with 360works mirrorsync. Single server to fm go clients.
I need to setup tomcat in order to get mirrorsync to work. The tomcat installation steps that the mirrorsync support staff refer to requires steps ...
Im typically using default rules:
sudo ufw default deny incoming sudo ufw default allow outgoing sudo ufw enable
I would like to close everything (outgoing) what i dont use. I would then do the following:
sudo ufw default deny incoming sudo ufw default deny outgoing sudo ufw enable
So right now everything is blocked. What im looking for is a logfile, which shows me what port has been blocked. Exampl ...
sudo iptables -A INPUT -p tcp -m tcp --dport 2222 -j ACCEPT in bash and then tried to connect to that machine via another machine on the same LAN / subnet via port 2222 with PuTTY and it didn't work.
Maybe I need to restart iptables after I add the rule for it to take affect? If so how would I do that?
Here's the output of
-P INPUT ACCEPT -P FORWARD DROP -P OUTPUT ACCEPT -N DOCKE ...
I am trying to add rules to allow port 161 in iptables . But it is giving below error while executing this command "sudo iptables -L"
iptables v1.6.1: can't initialize iptables table `filter': Permission denied Perhaps iptables or your kernel needs to be upgraded.
I am using latest version of iptables.