Questions tagged [forwarding]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
614 views

How to make "Warning: remote port forwarding failed for listen port XXXXX" into error?

In most cases this is harmless message. In this case, this SSH connection exists solely to forward TCP ports (and it uses a dedicated key which is restricted to only be able to do this), and it should ...
Nikita Kipriyanov's user avatar
0 votes
0 answers
53 views

How do I access a web server on the other end of an ethernet bridge?

Sorry if this is a stupid question; I know very little about networking and I've been struggling to figure this out! For a fun project, I'm trying to set up a vintage Mac as a web server (technically ...
Alex Anderson-Mcleod's user avatar
0 votes
1 answer
131 views

igmpproxy not routing SSDP between interfaces

I have hostapd running on two wireless devices in isolated and bridged mode: wlp1s0 is behind the bridge wan, and wlp5s0 is behind the bridge iot. The exact configuration for each bridge is the one ...
Quentin's user avatar
  • 13
0 votes
0 answers
26 views

Behaviour of networking after activating ip forwarding

Lets say I have two NICs in my computer. If I do something like sysctl -w net.ipv4.ip_forward=1 does the network stack start immediatelly forwarding packets from one NIC to the other NIC? Like kind of ...
ptiza_v_nebe's user avatar
0 votes
0 answers
432 views

virt-manager network options or virtual network interfaces

I want to ask about network options on virt-manager. I used to have the options shown in the given picture https://i.stack.imgur.com/P4SYR.jpg host device eth0 : macvtap host device wlan0 : macvtap ...
steerablenegligent's user avatar
0 votes
0 answers
46 views

How to access devices in the MacOS hotspot LAN from an external computer?

I have an Ubuntu20.04 desktop and a Mac, both of which are on the same zerotier virtual LAN. The Mac is connected to the internet via Ethernet and has enabled internet sharing (acting as a hotspot), ...
Zhengxiong Luo's user avatar
0 votes
1 answer
334 views

SSH reverse tunnel and port forward to a different machine on remote network

i am trying to do something , but i cant get it to work After at least 4-5 hours of research and trying , its time for help I want to connect to a second remote machine trough a primary remote machine ...
Antoine Lanaud's user avatar
0 votes
2 answers
639 views

Failing at SSH Agent Forwarding

I have a DigitalOcean droplet into which I'm attempting to clone a repo from Github. This works fine on my local machine, and I've been following the guide from Github here: https://docs.github.com/en/...
Adaddinsane's user avatar
2 votes
3 answers
3k views

X11 Forwarding request failed

I'm trying to use ssh -Y/X ManjaroHost from my Mac, but get "X11 Forwarding request failed". I've searched for the solution for two weeks, and have tried many methods suggested by similar ...
jing chen's user avatar
7 votes
2 answers
4k views

Difference between net.ipv4.conf.all.forwarding and net.ipv4.ip_forward

According to https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt conf/all/* is special, changes the settings for all interfaces forwarding - BOOLEAN Enable IP forwarding on this ...
Ahmed Gasanov's user avatar
1 vote
0 answers
111 views

Linux Server as both OpenVPN Client and Server

I am trying to set up a server that can on one hand connect to an OpenVPN server (Server 1) as client, and act as a OpenVPN server itself (Server 2). The server (server 2) would then route all the ...
tripleA's user avatar
  • 11
2 votes
1 answer
4k 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
61 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
135 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
0 votes
1 answer
55 views

Create virtual forwarding email addresses using a server side programming language [closed]

Some background information first before my question, I am curious as to what happens behind the scenes after you have purchased a domain name and then setup a forwarding email address from the newly ...
AeroMaxx's user avatar
  • 189
0 votes
1 answer
479 views

How to debug source IP which try to access SSH server through port forwarding by SSH

my case is likely following case: SSH client(192.168.0.11) -> public cloud VM with SSH server and setup port forwarding (139.90.90.90)(CentOS7.9)-> one internal SSH server(10.24.24.24)(CentOS 7....
yixuan's user avatar
  • 1
0 votes
1 answer
262 views

Bind9 keeps crashing when forwarding is enabled

I have a debian small server setup with bind9 and dnscrypt both on the same machine. Bind9 runs on port 53, dnscrypt on 5000. The regular bind9 server performs some checks then forward the requests to ...
user3450548's user avatar
  • 2,836
3 votes
1 answer
1k views

IPv6 forwarding doesn't work in a network namespace

I have 3 Linux VMs connected like this: / server1 \ | ens19 2001:1::2 | \ / | / \ | ens19 2001:1::1 | | ...
Chris's user avatar
  • 33
0 votes
1 answer
404 views

Bind with RPZ broke domain forwarding?

I wanted to take my existing internal DNS Bind servers and add some RPZ security. Previously I had split DNS with my internal view set to forward 3 specific domains to my offices internal DNS servers. ...
Nick Ellson's user avatar
1 vote
0 answers
187 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
525 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
13 votes
3 answers
17k views

What exactly happens when I enable net.ipv4.ip_forward=1?

Suppose I have this situation where I wrote a program to poison the ARP cache of 2 devices (let's say A and B), both in the local network to successfully able to MITM from device M. The program runs ...
InvisibleWolf's user avatar
2 votes
1 answer
1k 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
0 answers
96 views

IP forwarding not working on Vagrant + Ansible scenario

This is the scenario It is created with Vagrant and configured with Ansible, but the specific problem I'm going to ask about here is why IP forwarding is not working when it should be working. On the ...
Adrián Jaramillo's user avatar
2 votes
1 answer
700 views

How to set up NAT of VPN-sourced ip packets?

I have an SBC running Arch Linux that I use as a VPN server (as it is the only device having a globally accessed IP address not NATed by ISPs) to connect three different networks. These are 192.168.0....
z0mb1e_kgd's user avatar
1 vote
1 answer
554 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
1 vote
0 answers
152 views

How to redirect, in postfix, outgoing mails that get blocked, to another email address?

I'm a happy user of a postfix mail server. But, every now and than an outgoing mail is blocked by the receiving system. Be it that that system considers the mail as spam, or for some other reason. I ...
pe1aqp's user avatar
  • 11
1 vote
1 answer
1k views

Contents of /proc/sys/net/ipv4/ip_forward is deleted after reboot

I installed Debian 10 in VMWare. This Debian machine has to operate as gateway/router machine. To enable ip forwarding between my LAN and WAN interface, I edited the value with nano in /proc/sys/net/...
kzpm's user avatar
  • 65
0 votes
0 answers
70 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
178 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
0 votes
0 answers
259 views

Rstudio fails to be displayed on my laptop (client) when trying to X11 forwarding from my Imac (server) at home

I am trying to display Rstudio on my laptop (where I have Ubuntu 18.04.5 LTS) using X11 forwarding with ssh to connect to my Imac at home. I set up all the files (ssh_config and sshd_config) on my ...
Riccardo Delli's user avatar
7 votes
2 answers
3k views

How can I use GPG agent forwarding over ssh when systemd owns the remote sockets?

I'm trying to follow these guides and answers https://wiki.gnupg.org/AgentForwarding https://superuser.com/questions/161973/how-can-i-forward-a-gpg-key-via-ssh-agent https://gist.github.com/...
oarfish's user avatar
  • 394
1 vote
0 answers
2k views

Forward audio from Linux to Windows

For example, how do I forward audio from a Ubuntu guest (in Hyper-V) to the Hyper-V host, considering Hyper-V doesn't virtualize audio hardware? There is no pulse client for Windows 10 as far as I ...
Jonathan Dahlin's user avatar
1 vote
1 answer
2k 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
1 vote
0 answers
501 views

Proxy? Port forward?

So I'm looking for a simple solution in the form of a stand-alone middleman service to run on Ubuntu on a headless Raspberry Pi, listen on port 80 and forward the traffic from that, to and from an ...
Zinc's user avatar
  • 11
0 votes
0 answers
87 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
1 vote
1 answer
440 views

Bypass server VPN to access its HTTP port externally

I'm running a home server with FreeBSD 12.1 with openvpn. The openvpn runs strictly on the server - the rest of my home network is non-openvpn. I'm a noob with webservers, and am fooling around with ...
Jim's user avatar
  • 13
1 vote
1 answer
47 views

Why is the socket number incremented by one in libssh2 x11 forwarding example?

I am looking to x11 forwarding example in libssh2 source (example/x11.c). In the function x11_send_receive I see this code: rc = select(sock + 1, &set, NULL, NULL, &timeval_out); if(rc > 0) ...
lucky62's user avatar
  • 113
0 votes
1 answer
2k views

Setting up a NordVPN gateway on my Raspberry Pi

Goal Set up NordVPN on my Raspberry Pi and use it as a gateway. Current set-up Raspberry Pi2 running Arch ARM, connected to my router via ethernet cable NordVPN account nordvpn installed on my Rpi ...
Alessandro Romano's user avatar
2 votes
1 answer
733 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 vote
0 answers
318 views

Linux: UDP "multiplexer" inside kernel

I have an application with very high performance requirements and the following job: There is incoming UDP traffic on port 1234. The packets have as fast as possible to be sent to hosts H1, H2, ... Hn ...
Kevin Meier's user avatar
-1 votes
1 answer
647 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
0 votes
1 answer
923 views

SSH X11 forwarding - Authentication issue only with specific application

I have two raspis and connect from one to the other using SSH and X11 forwarding, ssh pi@[pi's IP] -X -v. Displaying the remote GUI using X11 forwarding works fine for many applications. However, for ...
SeBASStian's user avatar
0 votes
1 answer
133 views

What does * mean in ssh reverse forward?

What does * mean in the below ssh command? ssh -R *:1993:localhost:22 [email protected] The * means 23.105.207.175? And are there different meanings for the below three expressions? expression1: ...
showkey's user avatar
  • 275
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
0 votes
1 answer
52 views

Routing Configuration In Redhat Linux To Communicate Two Different Network

I have created three RedHat virtual machines named: server, client1, client2 in VirtualBox manager. server is connected to client1 on network 10.1.1.x with NIC card (internal network = inet1) and ...
Arjun Singh's user avatar
2 votes
0 answers
728 views

Can't use ip forwarding on Android unless hotspot is on

Really stuck on this one I want to change the gateway on my pc to go through my phone connected to the same wifi network in my home. When hotspot is on and I connect to it with another device it works ...
Jon O'Neill's user avatar
4 votes
1 answer
799 views

How to force ssh agent forwarding to continue in screen after you disconnect?

I want to connect to a host from which I will run ansible playbook using screen. Using screen allows me to have the playbook finish in case my ssh connection gets interrupted or terminated. So far no ...
alexfvolk's user avatar
  • 183
0 votes
1 answer
5k views

How to configure IP Forwarding

I have a device DEV1 which should communicate with device DEV3, however in the middle there is DEV2. My understanding is that I need to use IP Forwarding in DEV2 and edit route tables on DEV1 and DEV3....
Oleksii's user avatar
  • 115