Skip to main content

All Questions

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

Firewall to white- or black-list incoming requests

Well over a decade ago, when I was a Windows user, I used a Kaspersky firewall that would pop up when an application wanted was receiving a connection and allow me to allow or deny such connections. ...
Kohjah Breese's user avatar
1 vote
0 answers
853 views

How to disallow connection by ip country except one?

I want to disallow incoming connection from all country except one. I know https://www.ip2location.com/free/visitor-blocker and what files I have to download and allow and select 1 country. Then how ...
J.Col's user avatar
  • 11
1 vote
1 answer
3k views

Ubuntu server behind a firewall

I have a problem regarding a server behind a firewall, essentially, the whole internet is blocked, and I can't use the "add-apt-repository", problems like "X user or team does not exist&...
Yahya Ahmad's user avatar
0 votes
0 answers
140 views

iptable rules to allow downloading stuff while default policy is on DROP

I was trying to install bind and for some reason I was getting issues most likely due to my iptable rules , I can ping google.ca anybody have any reccomndations down below are my current rulesets ...
Zak A's user avatar
  • 1
1 vote
1 answer
7k views

IP forwarding does not work

I have 2 Ubuntu systems , both have Ubuntu 20.04, one has server (5.4.0-42-generic) , the other has desktop (5.4.0-58-generic). I can get ip forwarding working on one system which has the server . But ...
ecofriendlygeek's user avatar
2 votes
0 answers
815 views

I can't access port externally. What can I do?

(Ubuntu 20.04) I have ufw disabled, and I can't seem to access my game server externally with the public IP and port (1848). I can however, connect locally, just not externally. When I run: netstat -...
user2616079's user avatar
0 votes
0 answers
170 views

Can a firewall filter ip addresses?

The Linux firewall can filter ports but can it also block ip addresses from securing a connection?
Code4life's user avatar
1 vote
1 answer
2k views

Configuration of ufw for one user. Noob

I have several sudo users on Ubuntu 16 PC. ufw is disabled on this PC now. I need to switch ufw on for sudouser1. I need to make following config: 1) allow all and any incoming and outgoing ...
zlon's user avatar
  • 229
0 votes
2 answers
1k views

How can I allow the IP range xxx.xx.xxx.x/yy

I want to whitelist the IP range xxx.xx.xxx.x/yy with iptables. I have already tested many variants without success, like: iptables -A INPUT -s xxx.xx.xxx.x/yy -j ACCEPT iptables -A INPUT -i eth0 -s ...
user avatar
1 vote
1 answer
109 views

How can I dynamically determine the IP mask to use for dynamic ranges?

I have a list of ranges for IP addresses that I want to block, the ranges are like 210.80.32.0 to 210.80.63.255 How can I dynamically determine the right 210.80.32.0/NUMBER to capture the full range? ...
JoGotta's user avatar
  • 13
0 votes
1 answer
2k views

Can't ping my IP address

I cant ping my own IP address for my machine running Ubuntu. I have tried to ping the machine with an external VPS but I still have had no luck. I have opened port 80 (TCP) even though I don't think ...
NSPredator's user avatar
1 vote
0 answers
1k 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 ...
Janaka Chathuranga's user avatar
7 votes
1 answer
32k 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 ...
Kohjah Breese's user avatar
2 votes
0 answers
182 views

found someone lurking in my LAN, not sure what to do next

I have DD WRT router with internal numbers all falling within 192.168.1.0/24. I was looking on my firewall records this morning and found someone at 10.10.109.100 got blocked from accessing port 5353 ...
wardr's user avatar
  • 2,319
1 vote
1 answer
935 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 ...
user198003's user avatar
12 votes
2 answers
34k 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 ...
Marionette's user avatar