All Questions
Tagged with iptables iptables-redirect
58
questions
1
vote
0
answers
15
views
Redirect socks to another interface with nftable
I want to redirect the tcp port to interfaceX , to new destination : ip 192.168.3.8 on interfaceY with nftable rules.
I tried that:
nft flush ruleset
nft add table ip nat
nft add chain ip nat ...
0
votes
1
answer
10
views
Inquiry on how to set up the bypass function through 2 lan ports in a pc
I have 2 LAN ports on the server (eth0, eth1). I want to export the packet that came from eth0 to eth1. Additionally, I want to make it work in the opposite direction at the same time.
Is it possible?
1
vote
0
answers
107
views
How to forward packets between net namespaces?
I have a lima VM with linux running Ubuntu 23.04 with kernel 6.2 and cgroupsv2. This VM is meant to serve as docker host. When I create docker network in this VM I get an interface in its own ...
0
votes
0
answers
30
views
How can I isolate my firewall rules in a chain such that I can reset them separately?
I've been running some iptables rules for a while, which are (I hope) fine, no issues so far. Here's a snippet of that
# Block all input and forward traffic, both IPv4 and IPv6
iptables -P INPUT DROP
...
0
votes
1
answer
595
views
How can I copy all traffic on a network and forward it to another IP address?
I'm trying to use iptables.
I'm simulating a network with Mininet. I currently have a router connecting two subnets (10.0.1.1/24 and 10.0.2.1/24). If I use these two iptables rules on the router I see ...
0
votes
1
answer
655
views
Forward a request from Server A to Server B by Port
i'm not sure about the right terminology, but try to redirect Traffic from Server A to Server B. I have the following Resources:
A DNS Record Type A pointing to the Server A's IP address, e.g.: abc....
0
votes
1
answer
366
views
lxc containers can ping host and can resolve dns internet addresses but cannot get to the internet
Debian Buster amd64
Two containers, 192.168.122.2,3 both can resolve but cannot get to the Internet
Both containers can ping / interact with the host server.
Here is what I have in iptables.
# ...
0
votes
1
answer
202
views
Iptables forward port traffic to another port with byte calculation
Problem
I want to 'redirect' traffic from one port to another. But I need to be able to calculate how much INPUT AND OUTPUT bytes were used in communicating through that port.
Half Solution
iptables -...
0
votes
0
answers
219
views
iptables routing on multiple virtual interfaces
I have 1.1.1.1 outside, which is the public interface of vm1 in azure. VM1 has 192.168.1.1 an internal IP. In addition there's also 1.1.1.2 (virtual) which is attached to the same interface and is ...
-1
votes
1
answer
1k
views
Forwarding ports from one device to another, on different networks
My network setup consists of 3 computers (devices A, B, C).
Devices A, B, and C are connected through ethernet using a switch.
Only device A has internet access (wifi router, with ports 8000-8002 ...
0
votes
1
answer
157
views
Rerouting incoming packets from server to local machine B instead of A
I'm trying to redirect a server's incoming TCP packets to local machine B.
The application client on local machine A (192.168.0.7) is connected to the server (1.2.3.4), so every incoming TCP packet ...
0
votes
1
answer
300
views
iptables chain to forward between two identical networks
I have two identical networks and I am looking to forward traffic between two computers which are configured as a TCP server and a TCP client respectively. Using a computer which is connected to both ...
2
votes
2
answers
1k
views
iptables - Drop NAT rules based on rule/name, NOT rule number
I need to script some Iptables rule changes involving NAT rules (-t nat) on Ubuntu 16 servers.
It seems like the common way to drop a rule using -D [rule here] does not work with the -t identifier... ...
3
votes
1
answer
630
views
Port forwarding with iptables and firejail sandbox
I try to run a HTTP server on port 8000 in a firejail sandbox, and make it accessible on all interfaces of the host on port 8888.
The whole system can be represented as below:
+----------------------...
0
votes
1
answer
654
views
Route IP to another network without NAT
Hey I came up with the following Problem.
At my home I got one public IPv4 and want to add IPs.
I own multiple vServers with "as many" IPs I want. So I thought about buying an additional IP and ...