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
5,935
questions
0
votes
0answers
15 views
How do I port-forward Server-Client by iptables rules
I am setting up an Wireguard Based VPN (Server-Client) setup, I struggling with iptables configurations, Unable to port forward from-to server & clients
My Network Setup as follows
...
1
vote
0answers
25 views
What is the purpose of TPROXY, how should you use it and what happens internally?
After reading a bit about TPROXY (e.g at https://www.kernel.org/doc/html/latest/networking/tproxy.html ) I now have more questions then answers. I actually don't even know what TPROXY should do...
...
1
vote
0answers
22 views
Is there a way to modify specific IP options through iptables?
In IP header there is a option 130 - specified in RFC 1108, it adds some security options for IP packet, like mandatory access control levels and categories. My task is to try to modify at least level ...
1
vote
1answer
66 views
Forward ssh connection to Android devices
In my lab I want to set up a ssh jump host that forwards incoming ssh connections to Android devices that are connected to it via USB. All Android devices have USB-tethering turned on. The tethering ...
0
votes
0answers
46 views
IPtables rules in python using bash script
Here is my python script in bash, I am using subprocess.run to call iptables command , but I am getting an error
subprocess.run(["/usr/sbin/iptables", "-A", "INPUT", &...
0
votes
1answer
45 views
What is the difference between the loopback interface and the 127.0.0.1 IP address?
I am trying to allow connections between softwares running on the same machine in iptables.
The following kill my internet connectivity:
# The following rules doesn't allow the VPN connection to be ...
0
votes
0answers
23 views
iptables failed with “No chain/target/match by that name”
Guys I need to run a command on CentOS 7 :
iptables -A FORWARD -m string --algo bm --string "BitTorrent" -j DROP
But it fails with this error :
No chain/target/match by that name
I have ...
0
votes
1answer
32 views
iptables not allowing HTTP traffic
I have some issues that I am trying to troubleshoot with an iptables rules.
When I run the below and try to test out connecting to Git via Curl got Git CLI the connection hangs. The problem seems to ...
0
votes
0answers
31 views
IPsec strongswan creates wrong packets on WAN interface
I have set up strongswan for IPsec connection (remote Win10 to my Linux router). IPsec does not have interface by default but I don't want to risk exposing VPN traffic on my WAN interface. So I setup ...
1
vote
2answers
32 views
eth0 is not listening on port 80 when PPTP is not connected
I'm using Ubuntu LTS 20.04 on my cloud server.
Everything was working fine before I do some modifications to some network related configurations.
I have a PPTP VPN server running on my server.
Now I ...
0
votes
1answer
23 views
Access OpenVPN Client From IP eth0
Hi i just followed many thread in here but i cannot done it yet. I just wanna to access my client openVPN that has ip 10.8.0.2 via my public IP 34.101.xx.xxx
My server has Ubuntu Server that installed ...
0
votes
1answer
34 views
iptables - logging new connections
The configuration: Internet -- [eth0 -- wlan0] -- devices.
I am trying to detect 'new connection' packets from the Internet destined for a device on the wireless network.
I have tried the following (...
0
votes
1answer
34 views
Why am I no longer able to reconnect to remote server
I worked fine on a remote server (ubuntu-16.04), and when I ran the command from https://github.com/ubuntu/microk8s/issues/408 to fix a bridging problem in microk8s (kubernetes) I fell into a bigger ...
0
votes
0answers
21 views
Forward VPN Traffic from VPN interface through SOCKS proxy to
I have a working VPN setup with Wireguard and a working SOCKS5 proxy that are running on the same server. I am trying to forward traffic from the VPN interface to the SOCKS proxy before going out to ...
-1
votes
1answer
60 views
Routing Rules with VPN
Im newbie with this network things and need some help. I have setup like this
------------ ------------ ------------
| A | | B | | C |
| 10.148....