Questions tagged [iptables]
Iptables is used to set up, maintain, and inspect the tables of IP packet filter rules in the Linux kernel.
1,311
questions
0
votes
0
answers
26
views
Unable to open Port 19132 on oracle cloud instance running Ubuntu + Wireguard
I have been trying to run an mc bedrock server on my computer for the last couple of weeks for me and my friends and I'm behind CGnat so port forwarding is out of the question. I have an Ubuntu ...
-1
votes
1
answer
32
views
Ethernet to WiFi Client Communication Failure in Linux Network
Ethernet to WiFi Client Communication Failure in Linux Network
I am trying to set up a network where multiple devices can connect to each other. All devices are running Linux. The network setup ...
0
votes
0
answers
28
views
Allow user "kids" to access only wikipedia
I did
iptables -I OUTPUT -m owner --uid-owner kids -d www.wikipedia.org -p tcp --dport 443 -j ACCEPT
iptables -I OUTPUT -m owner --uid-owner kids -d www.wikipedia.org -p tcp --dport 80 -j ACCEPT
...
0
votes
0
answers
50
views
man what iptables docs for --sport and --dport
It's hard to find the documentaion for --sport and --dport by using "iptables --help" or "man iptables".
iptables --help | grep port
man iptables | grep port
But I can find it ...
0
votes
0
answers
14
views
Query regarding Iptables rule deleting
When I am deleting an iptable rule for example below rule:
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
It is getting added again as rule number 1. Can someone explain why it is happening like that.
I ...
1
vote
1
answer
160
views
ERR_ADDRESS_UNREACHABLE in all browsers on Ubuntu 22.04
I have dual boot of Ubuntu 22.04 and Windows, and after upgrading Ubuntu some websites stopped loading in all browsers. But everything is fine on Windows.
Tried using the ping command:
ping www....
0
votes
1
answer
50
views
How to match the --out-interface to the same --in-interface in iptables
The system have multiple interfaces: eth0, eth1, eth2, ... br0, br1, br2, ...etc`.
The following rule will allow packets from br0 to br0:
iptables -A FORWARD -i br0 -o br0 -j ACCEPT
I don't want to ...
0
votes
0
answers
12
views
Forwarding https traffic from openvpn to internal server which has internet access
I am trying to achieve the following behaviour
Client <--> openvpn at 1194 <--> internal server at port 8080 <--> internet
I used iptables prerouting route on nat with DPORT 80 and ...
0
votes
2
answers
132
views
Portforwarding Port 22 ( for ssh ) over JioFiber Router not working ( port 22 is closed )
I am using a JioFiber Router ( Firmware version : SRCMTF1_JCOW414_R2.52.1 ) . The host that I want to expose to the internet has Ubuntu Server 24.04.
Private IPs :
Router ...
0
votes
0
answers
63
views
UFW not logging [UFW BLOCK] events when default is to allow incoming connections
I'm trying to get a message logged to /var/log/ufw.log when blocking packets. It's all working very well, until I change the default behaviour for incoming connections.
I use ufw default allow ...
0
votes
0
answers
16
views
Shared connection unable to block ports
I am in need to test our connectivity of our device (specifically, how our device responds when unable to reach certain ports).
So I am trying to control the ports, by sharing the internet connection ...
0
votes
0
answers
26
views
Route between two network interfaces (one with VPN, the other one served DHCP addresses)
I tried to find an answer to my question, but I've not found anything...If this has been asked and answered I'll be happy with a pointer.
I have a server running Ubuntu 23.10 with two network ...
0
votes
0
answers
38
views
iptable-save command not showing any output
When i run iptables-save command on Ubuntu Ubuntu 22.04.3 LTS and Ubuntu 20.04.4 LTS it not showing default firewall chain rules when i run this other linux example centos or redhat i am able to see ...
0
votes
0
answers
51
views
iptables: symbol lookup error: iptables: undefined symbol: xtables_announce_chain
ubuntu20.04
When I running iptables -V, I encountered
iptables: symbol lookup error: iptables: undefined symbol: xtables_announce_chain
How to fix it?
Thank you
0
votes
0
answers
32
views
Openvpn service running, not connecting to tunnel after changing iptables
I'm trying to make a kill switch for my pi to only allow traffic through the VPN. I made the changes below to iptables and disabled IPv6 in sysctl.conf. This is not my area of expertise so I'm hoping ...