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
0 votes
0 answers
28 views

Forwarding all traffic

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. ...
user avatar
0 votes
0 answers
24 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 ...
user avatar
  • 113
0 votes
1 answer
49 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/...
user avatar
1 vote
0 answers
30 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 ...
user avatar
  • 11
1 vote
0 answers
31 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 ...
user avatar
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 ...
user avatar
0 votes
0 answers
22 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 ...
user avatar
  • 1
0 votes
0 answers
22 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 ...
user avatar
0 votes
0 answers
13 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, ...
user avatar
0 votes
0 answers
48 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 ...
user avatar
0 votes
1 answer
60 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 ...
user avatar
1 vote
0 answers
132 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 ...
user avatar
0 votes
1 answer
23 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......
user avatar
  • 115
2 votes
1 answer
123 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 ...
user avatar
  • 23
1 vote
1 answer
61 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 ...
user avatar
0 votes
0 answers
28 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-...
user avatar
0 votes
0 answers
33 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 -...
user avatar
0 votes
1 answer
31 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 ...
user avatar
  • 101
1 vote
2 answers
58 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 ...
user avatar
  • 35
0 votes
1 answer
88 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 ...
user avatar
  • 1
1 vote
0 answers
10 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 ...
user avatar
  • 11
0 votes
1 answer
111 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. ...
user avatar
  • 101
1 vote
0 answers
200 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 ...
user avatar
0 votes
0 answers
33 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) ...
user avatar
1 vote
1 answer
61 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 ...
user avatar
0 votes
1 answer
479 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 ...
user avatar
  • 143
0 votes
2 answers
74 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. ...
user avatar
0 votes
0 answers
10 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 ...
user avatar
  • 101
1 vote
1 answer
28 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 ...
user avatar
1 vote
0 answers
62 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: ...
user avatar
  • 13
0 votes
1 answer
168 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 ...
user avatar
  • 101
1 vote
0 answers
64 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 ...
user avatar
0 votes
1 answer
78 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 ...
user avatar
0 votes
1 answer
48 views

writing a script to check if ssh tunneling is on

I have a ssh tunnel set up as follows: ssh -N -L 1105:remote.server:25 office-machine& I want to write a script to set up a check, say once a minute (which I can do using a cron job, perhaps), ...
user avatar
0 votes
0 answers
42 views

multiple port forwarding

Here is my configuration HostA (client): ssh -fTN -L 7878:127.0.0.1:8989 jfroot@10.162.241.105 https_proxy=http://localhost:7878 http_proxy=http://localhost:7878 HostB (forwarding server) IP: 10.162....
user avatar
  • 1
0 votes
0 answers
44 views

Question regarding port forwarding from local to remote

Hi am just learning some port forwarding concepts and my doubt/question is below. I have a remote ec2 where jasper (j.s.p.r) is running on 7000 port, i can only access this jasper ec2 instance via a ...
user avatar
0 votes
1 answer
101 views

Secure RDP from windows to linux on port 3389

I'm looking for ways to access my linux machine (I've got two options, a machine running CentOS7 and a machine running Raspbian (rpi)) from a windows machine at school. I've installed xrdp and ...
user avatar
  • 47
3 votes
1 answer
504 views

How to open a filtered port

Somehow I keep breaking ssh on my ubuntu servers and I can't figure out why. I have a ddns set up as myserver.asuscomm.com and the ports are forwarded on my router. One of them works perfectly, but ...
user avatar
0 votes
0 answers
65 views

Forward UDP traffic to OpenVPN client

I have these hosts: server-a, server-b, firewall-a firewall-a ========== public: 5.5.5.5 private: 192.168.44.1 forwards tcp 1194 to 192.168.44.9 forwards udp 51820 to 192.168.44.9 server-a ======== ...
user avatar
  • 101
1 vote
1 answer
126 views

Forward SSH traffic to remote server

On my linux VM i have two IPs 192.168.11.88 192.168.11.99 I want ssh traffic from 192.168.11.99 on port 8889 to forward traffic to remote server 172.16.5.80 on port 22 How to achieve this with ...
user avatar
  • 3,834
1 vote
1 answer
20 views

Local HTTP port forwarding based on url suffix

I'm searching for a solution to locally forward webhook http post requests based on the url to which the request is sent. For example: I have my http server on 192.168.1.1. on port 80. If an http ...
user avatar
  • 11
0 votes
2 answers
53 views

Which port forwarding is better?

There are two methods enabling port forwarding, by entering sudo sysctl -w net.ipv4.conf.eth1.route_localnet=1 or uncomment the next line net.ipv4.ip_forward=1 in /etc/sysctl.conf, the first command ...
user avatar
2 votes
2 answers
318 views

How can I run an ssh client that forwards ports only once and then (automatically) stops listening?

When running ssh -R 2222:localhost:22 remotehost, the ssh client will keep listening at port 2222 on remotehost regardless of the number of existing tcp connections to port 2222 on remotehost that are ...
user avatar
  • 69
0 votes
1 answer
33 views

Sending request to local computer from anywhere

Few days ago I have made an application on raspberrypi that turn on the alight when you send to it an http request "http://rspi:8080/light". Secondly I have made an Android application that ...
user avatar
0 votes
1 answer
35 views

Accessing RaspberryPi (Linux) from Android phone device

With using Spring, I've made an app on my RaspberryPi that always when I type in my browser "rspi_ip/light", it switches on the LED. It works perfectly but I want to turn this LED on from my ...
user avatar
0 votes
0 answers
52 views

Route traffic from tun0 to eth0 on certain ports

I'm having quite a headache on this one. I used to get it done, and just realized now it does not work anymore. Possibly because after some update. I have OpenVPN running with this config: client dev ...
user avatar
0 votes
1 answer
151 views

is there some tool to manage ssh port forward

Now I am using ssh port forward to access remote redis or other service through 22 port. When I want to connect redis on remote public domain server, I will open the ssh port forward in the terminal ...
user avatar
  • 351
2 votes
0 answers
34 views

iptables - allowing access to only a single port on different subnet

I've got a OpenVPN server up and running, currently allowing to route all traffic between the VPN (10.8.0.0/24) and the LAN (192.168.2.0/24) network. My iptables look as follows: iptables -t filter -F ...
user avatar
0 votes
0 answers
61 views

VM cannot communicate with host on a given port

I'm doing some sort of school project where i have to make my vm (using virtualbox for hosting the vm) communicate with my host pc using port 6969. The problem is that even after all the things I ...
user avatar
1 vote
2 answers
300 views

Redirect rtsp video stream from Ethernet to WiFi network within same device

I have a embedded board with yocto based minimal linux without GUI. It has Ethernet and WiFi interface up and running. Now, I have connected Axis F44 (192.168.30.35) camera to my ethernet port (192....
user avatar

1
2 3 4 5
11