Questions tagged [ip-forwarding]
The ip-forwarding tag has no usage guidance.
135
questions
0
votes
0
answers
50
views
Manual routing & SNAT doesn't work with Openvpn
I cannot figure out which configurations went wrong so that manual routing with OpenVPN cannot work.
Here is the general idea to hide the Client's public IP under the Server's:
[App -> tun0(10.0.0....
0
votes
0
answers
54
views
IPv6 forwarding enabled but not working. How to get it to work?
My system is running Debian GNU/Linux 11 (bullseye)
My network is configured with two interfaces, one to my ISP and one to my lan.
I am using systemd-networkd to manage the interfaces. The problem is ...
0
votes
0
answers
34
views
Forward web requests to another IP and port over VPN
I have the following setup
Web browser (192.168.5.10) ——> Home Ubuntu Server (192.168.5.15) ————->VPN over the internet———>to a public IP——> Work Server (192.168.6.90) ——-> Web ...
1
vote
1
answer
642
views
Why is a system sending "ICMP time exceeded in-transit" messages when forwarding packets?
I have the following setup
| laptop A connected via Wireguard to a server - 192.168.20.3 |
🠛
| server B with Wireguard (192.168.20.0) and connected to a LAN (192.168.10.2). Forwarding is enabled |
...
0
votes
0
answers
58
views
tun0 doesn't forwards network
(wlan0 -> tun0) Ubuntu desktop "A" (eth0) -> (eth0) other Ubuntu desktop "B"
I have an OpenVPN connection on "A". OpenVPN server is from a Mikrotik RouterBoard.
I ...
0
votes
2
answers
185
views
Can't chain more than one network namespace together
Problem Statement
With the below configuration a veth pair is created between the default/main net namespace and a netns called ns1.
The config also creates a second veth pair: veth2 is in netns ns1 ...
0
votes
1
answer
407
views
Iptables: how to allow forwarding from wireguard NIC only to some IP
Context
I successfully integrated Wireguard in my LAN so I could access my NAS (192.168.1.45) from the outside.
|Router| ===:5182=> |VPN server| ====> |NAS|
192.168.1.254 ...
0
votes
0
answers
31
views
Ubuntu mate ip_forwarding
Unable to fix net.ipv4.ip_forward = 1. The displayed result is always 0. I make a change to sudo nano /etc/sysctl.conf, everything is saved. Then sysctl -p /etc/sysctl.conf or /etc/init.d/network ...
0
votes
1
answer
243
views
Route traffic through IPSec tunnel with gateway host
Considering the strongswan wiki, this appears to be a standard problem, but I can't get it working quite right.
Network layout
The local site (client and gateway) is under my control, the remote site ...
0
votes
0
answers
160
views
Linux Kernel IP Forward activated, firewalld is bypassed?
On a Linux Centos7, I have some traffic that is routed with static routes from one interface to another.
I did notice that with firewalld activated, both interfaces added in a zone, and nothing ...
0
votes
0
answers
43
views
Create UDP forwarders imitating multiple network elements that use the same port
Given:
I have a containerized service that sends UDP packets to a list of network elements (3rd party syslog sink servers).
Each target network element is specified by IP address, its port number is ...
0
votes
0
answers
244
views
How to change destination mac address with iptables
How to replace MAC address of a IP packet with iptables(if possible)?
I can only find examples of --mac-source rules used in iptables but those are used to MATCH not to replace mac address.
My problem ...
0
votes
0
answers
23
views
iptables forward port to new destination ipaddress
I'm trying to simply forward all requests to port 8080 to a new server destination port 80 so I set up the following iptables rule:
sudo iptables -t nat -A PREROUTING -p tcp --dport 8080 -j DNAT --to-...
1
vote
1
answer
112
views
DNS lookup not working when using Ubuntu as an access point
I have a Ubuntu system with a wired connection to a router, and a USB connection to 4G internet via an iPhone. I want to be able to connect other clients to the router and access the internet via the ...
0
votes
0
answers
295
views
Windows IP routing POSTROUTING MASQUERADE
I'm trying to implement the same arch in the image below on Windows.
I tried many different ways with no luck. (I can achieve this on Linux with the following commands)
sudo sed -i "s/#net.ipv4....
1
vote
0
answers
54
views
Suddenly ipforwarding uses local ip adresses for forwarded packages in ubuntu 16.04
I had two ubuntu servers (LB1 and LB2) which are directly connected to the internet.
The servers both had ipv4 forwarding active.
These two servers share their internet connection to some other ...
1
vote
1
answer
189
views
Having static IP allocated, still have to use DHCP, otherwise it does not work. Why?
I have a static IP address allocated by my Internet provider. However, support told me I have to use DHCP on my network interface, otherwise it may not work (and it actually does only work with DHCP). ...
0
votes
0
answers
320
views
Forwarding Traffic from TUN interface to XX
My setup is the following: I'm writing a program that creates a tun interface and writes raw (Layer 3) packets to that interface. For example a ICMP ping packet (to make things easy).
Now i want to ...
0
votes
0
answers
4k
views
WireGuard handshake fails to be received
EDIT: I figured it out, solution below.
I've been attempting to set up WireGuard as a VPN gateway manually instead of using wg-quick, as I don't want to route the local machine's traffic over the ...
0
votes
1
answer
213
views
Is IP Forwarding possible for OpenVPN using pfSense on Google Cloud Platform?
I have a scenario with a pfSense machine (subnet x.x.0.0) on GCP, IPSEC vpn with 10 Site-to-Site is working normal but OpenVPN is not, the struggle resides in routing the packets through OpenVPN ...
0
votes
1
answer
32
views
EdgeRouter Route Incoming Traffic to another Public Network/Server
I am curious if this is possible in theory? At my colo datacenter, I have a lot of public IP addresses (/21) on a 1GB circuit using an Edge Router 6P (not using BGP). I want to temporarily rent a ...
0
votes
1
answer
366
views
Kernel IP forwarding not enabled for ethernet interface on boot
To enable IP forwarding on boot in Debian, you put the following in /etc/sysctl.conf:
net.ipv4.ip_forward=1
I've done it thousands of times, and it has always worked without issues. But there is this ...
1
vote
2
answers
560
views
Static route - gateway not used
I'm trying to use gateway address 10.10.121.10 in order to forward TCP traffic via this machine. I would like to make that traffic from my machine is going over 10.10.121.10 and that machine 10.200.32....
1
vote
1
answer
2k
views
Port Forward through wireguard tunnel
I have a raspi connected to the Internet with a wireguard roadwarrior tunnel to the office.
The raspi should forward traffic at the "raspi Intranet" to the office net to a specific server.
...
0
votes
1
answer
944
views
NFTables: is it possible to forward traffic without masquerading it?
I have a remote server (B) that forwards certain incoming traffic to another port of a different server (A, dest).
With "masquerade" I only see traffic coming from the forward server (B), is ...
0
votes
1
answer
256
views
Forward incoming connection to another server, but forward the connection IP address as well
I have two Linux servers. I need to forward the incoming connection from server A (1.1.1.1:25565) to server B (2.2.2.2:25598) (as an example). I've tried multiple iptables rules, with partial success. ...
-3
votes
1
answer
109
views
Iptables forward webinterface of E3531
I have a Raspberrypi with an E3531 UMTS Stick connecting to the Internet. Since the Rpi is headless I wanted to make the Webinterface of the Stick available over the IP of the Rpi.
The Stick builds a ...
0
votes
0
answers
98
views
Forwarding bonded connection to local network through stateful firewall - ArchLinux
I'm using Arch Linux to set up a firewall for a school which will stream each classes' video to students at home, so I need a strong and safe connection, that's why I was thinking about bonding ...
0
votes
0
answers
42
views
I need help connecting to system running as gateway
I need some help with a new network I set up. I have a network setup according to the Masquerade Alternative on this answer, with the tap and bridge, and everything is mostly working.
Here's a (bad) ...
0
votes
0
answers
5k
views
Wireguard on Windows 10 - remote LAN access issues
I have a work LAN (192.168.0.0/24) with a bunch of Windows 10 and Linux machines that I need to have access to from anywhere. Since it is behind an ISP NAT and is not accessible from outside, I had to ...
0
votes
0
answers
37
views
Circumventing Local Subnet Control Restrictions with Iptables
I have three wireless speakers that, for security reasons, only permit local subnet control. My network is setup such that the wired and wireless devices are on separate subnets, so right now the ...
0
votes
0
answers
528
views
Forwarding Home Game-Server through GRE Tunnel | Can't ping remote GRE IPs
I am having trouble routing my game-servers through GRE. I do not receive a ping from either side when pinging them. I can ping the local GRE interface; however, I cannot ping the remote GRE interface....
1
vote
0
answers
68
views
Kubernetes cluster not working after setting up IP forwarding
I am doing a research project and our end goal is to essentially construct a kubernetes cluster using several Raspberry Pis. I've included the fact that we are using Raspberry Pis for reference, but I ...
1
vote
2
answers
188
views
Subnet to subnet forwarding traffic
I'am wondering how to forwarding traffic from a gateway to subnet.
network setup
I have this working setup, Host A behind tunnel can ping HOST B 10.151.0.1 but not HOST C 10.151.0.2.
If I TCPDUMP ...
1
vote
2
answers
328
views
How can I forward / redirect http to a public IP with nginx?
I have a domain example.com with DNS A record pointing to a public ip x.x.x.x.
I need to get all http and https requets from that server and forward that traffic to another public ip y.y.y.y.
Any ...
0
votes
1
answer
211
views
Why IP address overlapping occurs in IP forwarding table?
My understanding of an IP forwarding table is that they have a listing of different networks (identified by their IP ranges) and connects it to the next-hop router. However, I'm surprised why two ...
0
votes
1
answer
141
views
Forward ISP IPv6 from LAN to secondary LAN
I want to forward (or bridge, next to routing ipv4) the IPv6 internet connection from the LAN1 to LAN2.
IPv6 internet is accessible on LAN1.
I have a windows server, configured as NAT router between ...
1
vote
1
answer
925
views
In IPv6 router gets the Router solicitation message, but not respond with Router advertisement
We setup a IPv6 network with two ubuntu systems and we make one PC as HOST and other as ROUTER(based on the concept of SLAAC).
The host sent the "Router solicitation" message, but the router not ...
0
votes
1
answer
542
views
OpenVPN - Access to other client private network
I know that this title seems to be "over answered", but really I had no luck while searching...
EDIT: I've updated the diagram and the question, to be more precise
To better explain my situation, ...
1
vote
1
answer
3k
views
iptables - bridge / routing between two independent LANs (and router)
I can't find a solution in a network like in the drawing below.
I need to be able to open admin page of router 2 on LAN2 from a pc in
a LAN1, w/o routing throught Internet.
I have a "bridge" PC with ...
0
votes
1
answer
519
views
How to access the floating ip in browser rather than a localhost?
I have an instances that was made in OpenStack which have a floating IP for its instance, the IP for this machine is 10.1.1.164. I tried to forward this instances so it will accessible in my firefox ...
-1
votes
1
answer
29
views
How to forward public_IP/dashboard of an HTTP server to private_IP/dashboard?
I have a website which is accessible internally via http://private_IP/dashboard.
The public IP forwards all traffic to the private IP.
http://public_IP -> http://private_IP. This works.
However, ...
1
vote
1
answer
906
views
Ping public ipv6 dns from docker container
The docker container is running on a VPS (ubuntu 18.10).
What I am able to do:
ping -6 2001:4860:4860::8888 from host machine
ping -6 <docker container ipv6 address from host machine
ping -6 &...
1
vote
1
answer
216
views
route traffic from VPN server LAN (cloud) peer to VPN client
I have set up a Google Cloud deployment roughly configured as such:
node B, which is at address 10.0.0.6 and default route is through 10.0.0.1
node V, which is a VPN server, on same subnet at 10.0.1....
0
votes
1
answer
80
views
IP/Packets Forwarding [closed]
I have searched a lot about IP + Packets forwarding but there was not enough information to find.
Is forwarding only used in case of Virtual Private Networking or it has also other uses? if yes, when ...
1
vote
1
answer
384
views
Routing from LAN into OpenVPN
I need to set up a route from our local network into our VPN.
That is, anybody from inside the LAN should be able to communicate with machines in the VPN, without being a VPN client itself. Problem is,...
1
vote
1
answer
4k
views
Squid 4.2 - Different outbound IP for each client/user
I have been playing with a few different pieces of forward proxy software, primarily CCProxy and Squid Proxy/Cache. What I have is a dedicated server with a single NIC with multiple IPs assigned to it....
0
votes
0
answers
890
views
forward all traffic between two ports without iptables
I have read this:
Port forwarding on Linux without iptables?
I have a vps and I have ran lxc containers on it. I want to redirect all incoming traffic from one outside port to one port of a container ...
0
votes
0
answers
36
views
Selectively setting default gateway for traffic forwarded by IP tables
I'm attempting to forward traffic from a publicly available host to a private host located on a VPN. The TCP packets need to retain the original source IP address.
I've set IP address forwarding:
...
0
votes
1
answer
284
views
Ip forwarding - multiple subnets, multiple Ethernet ports
There are plenty of examples on here of how to forward ip traffic on a linux machine, and a few examples of how to forward traffic from one interface to another. However, most of the latter examples ...