Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
2 votes
1 answer
5k views

Setting IP forwarding with a bridge

I'm familiar with how to set IP forwarding between two interfaces, and it always worked. Now I have a different scenario where I want to set IP forwarding from a local network bridge to an output ...
Mellowcandle's user avatar
0 votes
1 answer
71 views

forward outgoing port and sourcenat this traffic

I have crawled the internet, and tried some config, but so far, i am stucked, so i would need a little help if someone has a better experience than me on this. :) I got a server,server1, behind a ...
Yann's user avatar
  • 1
0 votes
0 answers
156 views

How can I forward my http/https request to 2 different upstream proxies based in the destilanation url?

Hi I am quite struggling to find a good solution to my problem. I have to forward http/https requests from my (Linux) server to 2 different proxy based on the destination URL. I've tried different ...
Zioalex's user avatar
  • 286
1 vote
0 answers
194 views

Port forwarding in host only network with iptables

I have two machines in a host-only network. One is a client and the other one is a webserver. I want to forward all HTTP traffic from client to web server over a proxy on port 8080. I tried it with: ...
Marcel's user avatar
  • 13
1 vote
1 answer
568 views

Socks Proxy Connection Iptables Settings

i hope someone could help me because i can't get any further: I have the follwing Setup: System 1: PC Windows (192.168.240.2) System 2: PC Ubuntu (192.168.240.3) On the Ubuntu System i opened a ssh ...
sangul's user avatar
  • 15
2 votes
1 answer
2k views

Routing traffic from LAN to WAN

Preamble We have a test setup where several components are connected to their own network. This network has the the following address: 172.25.1.0/24. Most, if not all, of the components have static IP ...
SimonC's user avatar
  • 212
1 vote
1 answer
572 views

iptables - allow forward rules by set

I'm building a captive portal (yeah, just-another ;) ) and now I'm trying to handle the core feature, the iptables rules.  Based on ipset I have a list of valid mac-addresses with name allow-mac.  So ...
Volker's user avatar
  • 113
0 votes
0 answers
71 views

iptables: forward packet to another network

I have two machines on 2 different networks which are interconnected. First network: 10.0.0.0/24 Second network: 10.0.1.0/24 The first network is running an OpenVPN under 10.0.0.10 with ...
Yaron's user avatar
  • 233
1 vote
0 answers
180 views

How do I restore internet access to my devices with the iptables service running and ip forwarding enabled?

I use my laptop's hotspot with Ubuntu Linux for internet on my phone and entertainment devices. When I install the Linux Firewall iptables (ip forwarding enabled) by inputting in terminal: sudo apt-...
ThatGuy's user avatar
  • 31
1 vote
1 answer
3k views

Forwarding port to remote server?

How can I forward a local port to a remote host/port? I have tried using: sudo iptables -t nat -A PREROUTING -p tcp --dport <PORT> -j DNAT --to-destination <DESTINATION_SERVER>:<...
mjdarking's user avatar
0 votes
0 answers
99 views

Something is modifying my iptable, can it be traced?

I've got the following command in my iptable: -A FORWARD -o enp0s3 -j ACCEPT That somebody doesn't like, because after 2 reboots, it's gone from the iptable... I've got iptables-persistent installed, ...
Adam Larsson's user avatar
2 votes
1 answer
761 views

Linux source routing with nexthop pointing toward Docker

I have a similar question linked over to ServerFault, but after further working on the problem, I believe I've refined the problem to a Linux route table question. Background: AWS released their ...
DavisTasar's user avatar
-1 votes
1 answer
792 views

iptables - use different outgoing IP if destination is certain domain

I have a VM that has two IPs. Let's say 1.2.3.4 and 4.3.2.1. If i do "ip a", it shows me 1.2.3.4 as first one and 4.3.2.1 as second: 2: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP>...
smaxx1337's user avatar
0 votes
0 answers
42 views

Route traffic from interface to real router

I'm trying to capture packets sent from my phone using my raspberry pi, basically a MITM kind of thing. I have changed my phone's wireless settings to use the raspberry pi's ip address as the router ...
AndyF's user avatar
  • 1
1 vote
1 answer
1k views

Traffic Forwarding To Server With iptables

I have a server (10.10.0.100) on the same subnet (10.10.0.0/24) with all the rest of the hosts. I would like that server to received a full copy of all traffic (Windows and Linux machines) on it's ...
justlearning's user avatar

15 30 50 per page