Questions tagged [port-forwarding]

Port forwarding is a process consisting in the translation of a host:port couple into another host2:port2 couple, both submitted to the same network mask.

Filter by
Sorted by
Tagged with
1 vote
1 answer
24 views

forward remote tcp port to local port

I have the following setup: The unit constantly tries to connect to the Remote Server on a specific known port. On the Remote Server, there is nothing but open TCP ports. I want to forward the Remote ...
0 votes
0 answers
20 views

How do I "expose" an app's localhost-only port to my LAN?

gradio opens up a port, but doesn't open it up to the LAN. it is restricted to connections from the localhost. Running on local URL: http://127.0.0.1:7860 Running on public URL: https://12345....
2 votes
1 answer
28 views

Forwarding traffic back through WireGuard (Setting dnat for oif wg0, after processing the application)

I use WireGuard as a secure communication channel between two servers in different DCs to hide the existence of the end server (server B). I use nftables as a firewall management tool. From public ...
0 votes
0 answers
15 views

IP PORT-FORWARDING to a HOST fails when requests originate from that HOST (but succeeds from everywhere else) ... (Fedora-36)

I'm unsure if this is where to post this (as opposed to onto the Network Exchange), but since it involves Linux and networking is universal, so I'll post it. I have two Linux computers running Fedora-...
  • 199
0 votes
0 answers
55 views

IPforwarding for gateway not allowing certain software installs

I have a pi gateway I ultimately want to use as a VPN gateway but I'm having some issues with it being a normal gateway right now... Currently my set up is the following: Laptop > (eth1 169.254.169....
  • 1
0 votes
0 answers
15 views

Securely Forward Service on Private Network to Client on Another Private Network

I have two computers on private networks and a VPS, all running Linux. I would like to be able to make a secure tunnel between the two computers so that one can securely access services hosted by the ...
1 vote
2 answers
139 views

How to forward packets with keeping the original IP address

I need forward packets from one server ("as a proxy") to another with keeping the original IP address of clients. Topology is: X.X.X.X - public IP1 ("proxy server") Y.Y.Y.Y - ...
  • 575
0 votes
2 answers
61 views

Preserve port in url (nginx)

I am trying to run nginx server to show some folders, so users could see theirs content and download files. But I want nginx to listen port say 80 inside docker container, but outside it will be say ...
  • 101
-1 votes
1 answer
80 views

SSH X11 forwarding with port forwarding

I have one question about SSH X11 forwarding and Port forwarding. I have: 2 computers running Ubuntu Desktop (not in the same location and local network) called Desktop1 with IP address IP1, the ...
0 votes
1 answer
30 views

Port forwarding 3389 into local network safety

I've installed xrdp on a system running centOS7 - this allows me to rdp from any pc on the network using the local ip/hostname. I'm looking to be able to rdp straight into the system from outside of ...
0 votes
1 answer
32 views

Forwarding tcp ports through a vps

I have a local machine M that I want to expose to the internet, and I can't use port forwarding. I want to open port 22 on M to the internet, using my vps S as a proxy. I want to use this port to have ...
0 votes
0 answers
211 views

How to port forward my ubuntu 22.04 using iptables

Do you know how to gives iptables rules to my machine in order to allow trafic from my public interfaces(wlp3s0) to my private interfaces(lo). Kinda with this topology: 192.168.1.1:80 => 127.0.0.1:...
  • 1
0 votes
0 answers
62 views

Cant connect to RASPI via SSH

I can't SSH to my Raspberry Pi through internet, but I can do it through local network. I'm forwarding the LAN port 22 to wan port 23456 and connecting through a DDNS so ssh -p 23456 blabla@blabla....
0 votes
1 answer
61 views

Host PC fails to access Webmin which is installed on CentOS in VirtualBox

Webmin can be accessed over SSH after forwarding the port. Now I am trying to access Webmin's control panel on my computer outside virtualbox but on the same computer, but it doesn't load. I tried ...
0 votes
0 answers
164 views

Port forwarding while preserving original IP

Im using firewalld to forward an incoming port from the internet (9999) to a local LAN IP address (100.1.1.1) like this: external (active) target: default icmp-block-inversion: no interfaces: ...
  • 121
0 votes
2 answers
85 views

opening a temporary tunnel

I have the following problem: I have a remote machine accessible via ssh which can serve some data through a web interface. I can use OpenSSH LocalForwarding to open a tunnel and start the remote ...
  • 760
0 votes
0 answers
72 views

SSH port forwarding configuration for accessing a TCP port on a virtual machine from another virtual machine running the on same host hardware

Scenario I have the an Industrial PC that has two Operating Systems (virtual machines): Real-Time Operating System that can talk to PLC controllers Generic Linux (Ubuntu 20.04) Distribution The only ...
1 vote
1 answer
301 views

Forwarding all traffic [closed]

There is such a scheme: The operating system ubuntu server 22.04 is installed on Raspberry Pi4. Through the main network interface, Rpi is connected to the home router and has access to the Internet. ...
0 votes
0 answers
66 views

Iptables forwarding port to localhost

How can I use iptables in order to forward a port on domain example.com to 127.0.0.1? To be more clear, I would like to telnet 127.0.0.1 1234 instead of telnet example.com 1234. Is it possible? Thanks ...
  • 113
0 votes
1 answer
1k views

How does certbot bind port? Could not bind TCP port 80 because it is already in use by another process on

I enabled both 80 and 443. sudo certbot certonly --standalone --agree-tos --no-eff-email --staple-ocsp --preferred-challenges http -m **@**.com -d mycomp.com Saving debug log to /var/log/letsencrypt/...
1 vote
0 answers
43 views

Trying to forward port 53658 on my openvpn server

i am attempting to forward a port on my OpenVPN server hosted in the cloud. I am currently using transmission to download torrents, and have it set up against a self hosted OpenVPN server running ...
  • 11
1 vote
0 answers
137 views

Access Apache NiFi running on remote VM via browser and PuTTY

I'm trying to access a Virtual Machine running in Google Cloud which has a Apache NiFi service running on port 8080 on the VM. I have managed to create an ssh key and upload the public SSH key to the ...
23 votes
2 answers
2k views

Add port forwarding to a running SSH session

The OpenSSH client has a command line option for port forwarding, used like this: ssh -L localport:server:serverport user@host which will connect to host as user, and at the same time redirecting ...
0 votes
0 answers
47 views

Forward a port through a VPN to remote host

Preface: I would like to setup a game server for me and my friends to play on that is hosted on my local machine. My machine is currently at university which doesn't allow me to forward ports. I ...
  • 1
0 votes
0 answers
76 views

How to forward a port from a private interface to a public one?

I need to forward port 25565 (Minecraft) from a server which has got public ip to another one (without a public ip) to port 25565 too. These servers are in a Wireguard network 10.1.0/24 on interface ...
0 votes
0 answers
20 views

Create network between physical machine and ubuntu vm running docker hosting a “Stack“ of containers, with two web applications, an Nginx proxy

I have to configure a WM with ubutu in the virtual box that will be the server, it will run a container with two web applications and an nginx proxy, accessed directly from the Windows environment, ...
0 votes
0 answers
146 views

PuTTY SSH tunnel port forwarding

My goal is to use PuTTY as a proxy server via SSH tunnel. It works on Windows with PuTTY, but not on Raspberry Pi 3B. So far, I can successfully install PuTTY on Raspberry and connect to SSH server ...
0 votes
1 answer
331 views

Why can't I access this app with 127.0.0.1?

I have a .net core app in a docker container on Ubuntu on port 80 that seems to bind start listening on http://[::]:80 (ipv6)?. I dont think this is .net specific but more the networking setup on the ...
1 vote
0 answers
928 views

Local port forwarding on Ubuntu 20.04?

I have a service listening on port :3000. However, I would like to change that to port :8080. Unfortunately, the program that I'm running does not allow me to change the listen port. Is there any way ...
0 votes
1 answer
27 views

reverse tunneling

for simplicity ill give my servers name, server-A, server-B server-A - a simple server with public IP, this server is 1G ram, shared CPU server-B - a more robust server with more ram, cpu cores etc......
  • 115
2 votes
1 answer
286 views

Web server cannot access itself through public ip address on nftables port forwarding

I have a WireGuard server as the edge router. Forwarding all http traffic to my web server. Everything works fine but there is a problem. The web server cannot access itself through the WireGuard ...
  • 23
1 vote
1 answer
231 views

tell socat to stop on connection refuse with fork enabled

I'm using this instruction to forward a port to another, both on a local machine: socat -d -d TCP4-LISTEN:80,reuseaddr,fork TCP4:127.0.0.1:8000 I need to keep the port open unless the destination ...
0 votes
0 answers
62 views

BAD REQUEST when using iptables for a captive portal on raspberry pi

I have my raspberry pi setup as a wireless access point by following the documentation on the official site https://www.raspberrypi.com/documentation/computers/configuration.html#setting-up-a-routed-...
0 votes
0 answers
159 views

How to Port Forward without routing Internet with OpenVPN

How i install OpenVPN I install OpenVPN on ubuntu server with https://github.com/Nyr/openvpn-install How i achieve Port Forwarding iptables -t nat -A PREROUTING -p tcp -m tcp --dport 80:65535 -j DNAT -...
0 votes
1 answer
108 views

nftables port forward causes network requests to fail

I am trying to forward some ports from a public IP 172.10.22.22 to a remote VPN IP 10.22.22.22. The local VPN IP is 10.22.22.1 The ethernet interface is eth0 The wireguard vpn interface is wg0 These ...
  • 101
1 vote
2 answers
145 views

How to forward a port, through another server

I want to setup a little game server to play on with my friends, I pay for a vps, but it just doesn't have the hardware to run this game server. My own pc could run the server, but opening ports to my ...
  • 55
0 votes
1 answer
195 views

Setting up Port forwarding on Ubuntu 21.10 with OpenVPN (homerouter port forwarding not working)

I'm trying to setup port forwarding on my local workstation, since the home router is not capable of doing the port forwarding I went on with privateVPN. The privateVPN is configured on OpenVPN with ...
  • 1
1 vote
0 answers
15 views

Why does my virtualbox gateway duplicate SYN packets?

I'm trying to set up port knocking using iptables on a Debian server hosted by VirtualBox on my Ubuntu machine. For some reason, when I knock on a port on the server from the host machine, this knock ...
  • 11
0 votes
1 answer
913 views

How to access web application running in docker container on remote server?

I have a Ruby on Rails app running in a docker container on a remote server. When I'm connected to remote server with ssh like ssh user@<server_ip>, I can ping it with ping mywebapp.localhost. ...
  • 101
2 votes
0 answers
818 views

KVM port forwarding (Ubunto 20.04)

I have a fresh installation of my computer of Ubuntu 20.04.3 LTS. I have installed kvm: sudo apt -y install bridge-utils cpu-checker libvirt-clients libvirt-daemon qemu qemu-kvm I have created a new ...
0 votes
0 answers
44 views

iptables port forwarding not working under switch

I'm making my own Linux router, and want to set portforwarding to my second PC. The current setup is eth1, PC 1, PC 2 and they're all connected to the same switch. WAN -> eth0 (Linux), eth1 (Linux) ...
1 vote
1 answer
233 views

How to forward all port from Debian to Windows with OpenVPN

My Setup: Debian 10 from Azure Windows 10 from Azure Debian 10 is a clean new server from Azure with only OpenVPN installed and set up using the script from this Repository. Windows 10 is full of ...
1 vote
1 answer
1k views

SSH Tunnel (Port forwarding) in background

I have a command to forward a port from my computer to a server, as follows: ssh -L 8000:localhost:8888 myserver.com I would like to run this command in background. I don't need to enter user and ...
  • 161
0 votes
2 answers
152 views

iptables port forwarding from external ppp0 to internal server

Actually the same question to this one. But I didn't get answer there either. My scenario is: a Linux box with two NICs acting as a router, running iptables rules for masquerading, firewall, ... etc. ...
0 votes
0 answers
14 views

Embedding a resource to a web to be accessible from outside the local network (Nginx)

I am using a RPi for a petcam. The camera is accessible at a certain IP:port in the local network, and somewhere in the local network I have a web server running with nginx that embeds this video. All ...
  • 101
1 vote
1 answer
90 views

OpenVPN Server Port Forwarding

I'm sorry if this question was asked already, but I didn't even know how to search for it, so if you already have a solution, please be kind enough to reply with a link. So a friend of mine has a 4g ...
1 vote
0 answers
109 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: ...
  • 13
0 votes
1 answer
353 views

How to set up a reverse ssh tunnel on a Vps in the cloud?

When I try to open a forward tunnel on my Vps in the cloud, it works: ssh -p 22 -i mykey user@vps-public-ip -L 10000:vps-private-ip:80 Then my local web browser shows the page on the Vps by typing ...
  • 101
1 vote
0 answers
203 views

Squid Transparent Port Redirection

I'm running Squid 5.2 on Ubuntu 20.04. I set this machine up as a web filter for my children. The proxy functions appear to work fine. I am pretty sure at least one of the children will be able to ...
0 votes
1 answer
109 views

Expose local dev server externally with SSH Tunneling / Port Forwarding through Raspberry Pi

I'm trying to expose my local dev server externally so that my web app can be tested by users who are not in my local network. Users who test the web app must run the apps with localhost:3000 and ...

1
2 3 4 5
11