Questions tagged [iptables]

iptables is the userspace command line program used to configure the Linux 2.4.x and 2.6.x IPv4 packet filtering ruleset. It is targeted towards system administrators. Please, when asking a question about iptables, add the output from the following command: iptables -L -v -n

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

IPtables rule to allow NAT'ed devices to connect to port-forwarded services in the same network

Currently, I'm using the following IPtables setup and unable to figure out how to allow traffic from LAN to port-forwarded services available on my public IP. The situation: ens3: The public facing ...
0
votes
0answers
8 views

CSF not blocking traffic to docker

CSF is installed at host and following is applied https://github.com/juli3nk/csf-post-docker When IP is blocked in CSF, ICMP and request to all other ports gets blocked (except the ones which are ...
-1
votes
0answers
17 views

How can I block all http/https traffic with iptables? [closed]

How can I block all http/https traffic with iptables on Linux? Thanks for help!
0
votes
2answers
42 views

Is it possible to retain senders IP information on backend server when using iptables as reverse proxy?

Lets say I have 2 servers: 1.1.1.1 and 2.2.2.2 I have forwarded all traffic to all ports on 1.1.1.1 to 2.2.2.2 using iptables iptables -A FORWARD -d 2.2.2.2 -i eth0 -p tcp -m tcp --dport 1:65500 -j ...
-2
votes
0answers
23 views

Mirroring traffic using iptables

I want to analyze all my network traffic at home. I have a quite simple configuration: mi-mini router with padavan firmware + Raspberry Pi 3B+ as a mirror. Firstly I realized that the firmware does ...
0
votes
0answers
18 views

DD-WRT not routing clients over OpenVPN

I have a Linux router and OpenVPN client at home (running dd-wrt) which is connected to my office network via OpenVPN. From the router itself, I can access my office LAN and its hosts. However, from ...
-1
votes
0answers
21 views

Connect a windows pc to laptop linux [closed]

I have a PC ( windows IP:10.10.10.3) and a Laptop ( linux IP: 10.10.10.2 ) , I have connected PC and Laptop via cable and used 10.10.10.0/24 network for their interfaces. Linux also connects to ...
0
votes
0answers
43 views

FreePBX dropping calls from Twilio for unknown reason

I have a single FreePBX system connected to Twilio's Elastic Trunk service. Local server IP is 10.0.3.1. Sometimes, when a call is placed, the call comes in, goes through our system, and routes ...
0
votes
3answers
137 views

Linux iptables: Drop all Apache requests except from a single IP Address

I'm currently building a website using Apache on a Debian 10 Server. I would like to block all traffic to my website except from a single IP Address (my home network's Public IP Address) so that I can ...
0
votes
1answer
33 views

Fail2ban not banning ip address

I installed fail2ban on a Ubuntu 20.04 server. I've followed some articles on how to configure it but it doesn't work. I've made 10 incorrect login attempts and still didn't get banned. /etc/fail2ban/...
1
vote
0answers
174 views

Cannot access guest webserver from host

Here is my configuration, I have a Ubuntu 20.04 host machine with a kvm virtual machine holding a webserver. I set the folowing rules with iptables in order to root the ports 80 and 443 of the host ...
-1
votes
1answer
76 views

Banning an IP address

I banned an IP on my server, but I'd also like to ban using the CIDR method, e.g. IP/24. My questions are: How do I find the CIDR range of the IP address. When banning the range, if the user has a ...
0
votes
1answer
36 views

Why UFW port range / number for ports is limited to 15 ports? [closed]

Why UFW port range / number of ports is limited to 15 ports? man ufw: You cannot specify more than 15 ports
-2
votes
0answers
23 views

I'm trying to create a loopback in ubuntu for gns3 cloud and nat it to the internet so that, I can run some automation code [closed]

Previous script below failed after update: #!/bin/bash #script of commands needed to make loopback interface #for GNS3 cloud! #Create the interface #only needed the first time #sudo apt-get install ...
0
votes
0answers
9 views

SIP call forwarding answers *sometimes*

I have a SIP server behind a NAT firewall. The SIP server in configured correctly, and can receive calls locally. We recently integrated with Twilio for an Elastic SIP trunk. Calls will sometimes go ...

15 30 50 per page
1
2 3 4 5
388