Questions tagged [port-forwarding]

port-forwarding on firewall or via SSH

Filter by
Sorted by
Tagged with
0 votes
0 answers
26 views

Port Forwarding all ports in UFW to a VPN Client on Ubuntu Server

I am running a VPN Wireguard server on Ubuntu 22.04. I am trying to forward all ports from the server to a vpn client on 10.10.10.2. As of now, I have perfected port forwarding for single ports. In /...
0 votes
2 answers
4k views

Typical port forwarding with nftables example

I want to connect to a virtual VM hosted by the server 1.2.3.4 using ssh. The IP of the VM is 10.10.10.100. "nft list ruleset" prints: table inet filter { chain input { type filter hook ...
1 vote
1 answer
93 views

OpenSSH server limit local forwarding to only unix sockets

Problem: Limit SSH -L forwarding only to unix sockets SSH server S is a shared server inside a private network used by several users. Use-case: for each user I create a local unix socket to use to ...
0 votes
0 answers
23 views

Virtualbox NAT configuration for HTTP port forwarding [migrated]

Hi I'm successfully installed Ubuntu server on virtualbox in macOS. Now, I want to access the ubuntu localhost either 0.0.0.0:8000 or 127.0.0.1:8080 in my host operating system. I configured NAT port ...
0 votes
0 answers
56 views

Proxmox, iptables connection refused on port 443 from different nodes if forward to LoadBalancer

having some problems with port forwarding on dedicated machine running Proxmox. I have create an LXC-Container for LoadBalancing and forward all incomming request on port 80 and 443 to it. If I am ...
0 votes
0 answers
186 views

Port forwarding to podman container not working

I want to serve port 8000 from a podman container to the LAN using port 8009. The container is run using podman-compose, which translates to the following command: podman create --name=pihole-...
0 votes
1 answer
129 views

VM behind nat on Proxmox cannot reach port from internal network

The issue is that I am able to reach port 25 from outside (public internet) to the specific machine in the local network behind NAT, but cannot reach to port 25 on public machine e.g. hotmail-com.olc....
0 votes
0 answers
60 views

Kasten k10 dashboard 504 error

I Have installed the Kasten k10 on AWS k8, trying to access the dashboard from service port forward. Dashboard has an network error with error logs on dashboard-svc pod and Gateway pod. Below are the ...
0 votes
0 answers
95 views

Issue moving Ubuntu/Apache webserver from Comcast to AT&T router

I've hosted a simple Ubuntu web server for years on port 443 via a Comcast router with port forwarding enabled without issue. I now have to change to AT&T, the router they provided is a BGW320, ...
0 votes
1 answer
9k views

Access web server on VPN client through VPN server public IP

I am trying to access a web server running on a PC, that is behind a firewall not managed by me, using a VPN connection (openvpn). Basically, I want to use the public ip of my VPN server for accessing ...
1 vote
2 answers
236 views

TCP port forwarding/tunneling by file sharing

I have a Linux server and a windows client. A folder is shared between these machines with read and write access for both of them. I want to access a production database from my development machine, ...
2 votes
2 answers
2k views

Forwarding VPS Traffic over WireGuard

So I've been pulling my hair out for the last 24 hours to sort this out. Long-story-short, my home internet runs over a 4G Mobile network, so this means I cannot Port Forward through my main Router. I ...
0 votes
0 answers
86 views

LTE Mikrotik NAT not works

I've and LTE Mikrotik HRBwAPGR-5HacD2HnD and QNAP NAS server. My need was to route trafic to QNAP server (192.168.88.102) from internet(using DDNS and so on) but not able to perform it, maybe I'm ...
2 votes
1 answer
5k views

Simple port forwarding with iptables

I start with the following which doesn't seem necessary, but it doesn't seem to hurt: echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward The following two commands create port forwarding from port 5433 ...
-2 votes
1 answer
68 views

Routing webserver access between LAN and VLAN

I have a LAN set up with IPs 10.0.0.X and a VLAN with 10.147.18.X (Zerotier) and I have a webserver (Plex) that is accessible within the VLAN. I have a ubuntu 22.04 pc connected directly to the LAN ...
-1 votes
1 answer
61 views

How does real server, direct return server (DRS), reply to client if a load balancer (LB) uses port address translation (PAT)?

Direct Return Server overview: The DRS allows real servers to directly reply to a client without going through load balancer (LB). The LB ip (VIP) is configured as a loopback (localhost) ip for the ...
0 votes
1 answer
87 views

Using two asymmetric uplinks

My current network topology is: Fact Firewall (I tested with OPNsense and IPFire, but I'm open to further suggestions) and the whole "ORANGE/DMZ" stuff are actually VMs/containers in a ...
1 vote
2 answers
201 views

Looping forwarded and locally originating connections through port forwarding rules in firewalld

I have a Debian box running firewalld set up a as gateway NAT/router. This device has two NICS; wan --- public interface, assigned to the external firewalld zone, dynamically assigned IP address using ...
0 votes
0 answers
110 views

Port forwarding ubuntu server - iptables

I would like assistance in connecting to a WireGuard server that is currently being censored by my ISP. To overcome this restriction, I am attempting to set up port forwarding from my VPS to the ...
1 vote
2 answers
358 views

How to Configure Domain-Specific Port Forwarding on MikroTik Router?

I have a MikroTik router set up at the entrance of our office network. I'm looking to configure it for specific domain-based port forwarding. The task seems to be rather common, but I am stuck. Here's ...
0 votes
2 answers
125 views

setup up ssh connection with 3 Ubuntu machines to bypass a firewall

I have 3 machines, here are the IP addresses of each of them with their ssh port : first device IP: 192.168.1.2 second device IP" 192.168.1.3 port 22822 third device IP: 192.168.1.4 port 22 I ...
7 votes
2 answers
29k views

Port forwarding through OpenVPN

Here's my scenario. I have three hosts. 1) GATEWAY running OpenVPN Server. It has 1 LAN IP (192.168.1.10) and 1 OpenVPN IP (10.8.0.1). 2) LOCAL-CLIENT, a machine within the same LAN as GATEWAY, with ...
2 votes
3 answers
4k views

port forwarding with rules on ubuntu 18.04

I'm having a VM where port 80 is consumed by apache tomcat (host.nvoids.com). and I'm having apache2 php running at port 8020 which is a wordpress blog (host.nvoids.com:8020) I want when somebody ...
1 vote
1 answer
248 views

Cannot access deb.debian.org from VM after port forwarding using /etc/libvirt/hooks/qemu

Setup On host server with Debian Bookworm I created two VM-s (pserver 192.168.122.227 and pagent-1 192.168.122.126) via cockpit (kvm). Both of them are running Debian Bullseye. I am using default ...
3 votes
4 answers
5k views

Port is filtered after port forward

I'm trying to set up a simple SSH server, but the port is still filtered even after port forwarding. (I've set up SSH to use port 1338 instead of default 22.) We can see that the port is filtered by ...
0 votes
1 answer
89 views

How to redirect an IP and port that is being listened to using iptables?

I have a server with two external IPv4 addresses. One address is essentially unused in that it doesn't appear in any DNS and I haven't employed it for anything. I want to use port 80 on it now, but ...
8 votes
3 answers
3k views

Redirect ssh trafic for one user through another port

Is it possible to have a configuration like this: A server which listen ssh connections on port 22 as usual For one user (let's say git) redirect all the traffic through another port (2222 for ...
0 votes
0 answers
74 views

SSH connection to the GIT through a jump server with stdin/stdout forwarding

SSH connection to the GIT through a jump server with stdin/stdout forwardingI'm trying to establish a connection from client server (A) to the remote server (C) using an intermediate jump server (B), ...
0 votes
0 answers
46 views

Ports open only on specific event

I've recently opened some ports (8080, 2223, 2224) to open a sftp server and a webserver-type fileserver. However I've been running into issues and haven't found a single solution since. The problem ...
1 vote
2 answers
6k views

How do I set up an nginx reverse proxy for Synology drive?

tl;dr I tried setting up nginx to forward a TCP connection over 6690 to Synology Drive. But when using listen 6690 ssl; the Synology Drive Client cannot find the NAS, and when using listen 6690; (...
0 votes
1 answer
628 views

how to expose apache docker container on port 8080 rather than port 80

I have a webserver running on port 80 , however I need the site to be accessed using 172.16.21.2:8080 , regardless of what port mapping i specify it is always accessed using port 80. How can i make my ...
147 votes
8 answers
576k views

How can I port forward with iptables?

I want connections coming in on ppp0 on port 8001 to be routed to 192.168.1.200 on eth0 on port 8080. I've got these two rules -A PREROUTING -p tcp -m tcp --dport 8001 -j DNAT --to-destination 192....
0 votes
0 answers
202 views

Simple MySQL tunnel without SSL or SSH?

What I have I have a MySQL database that allows whitelisting only 2 individual IP addresses. No other access to that server except a MySQL username and password. What I need I need to connect Google ...
-1 votes
1 answer
88 views

Years old iptables script breaks (-o option no longer exists?)

I've had a script for a while that forwards a port through my Wireguard VPN. Recently, I tried using it and it returned: Bad argument `wg0' Try `iptables -h' or 'iptables --help' for more information. ...
0 votes
0 answers
25 views

Allow access to local mongodb database to a different network

Is it possible to do tcp port forwarding using windows settings without having to access router settings? I am trying to give access to my local mongodb database to someone on a different network to ...
0 votes
1 answer
275 views

Forward Wireguard traffic to another port

I have installed Wireguard on server A with below configuration: [Interface] Address = 172.16.0.1/24 ListenPort = 51820 PrivateKey = <server private key> # Firewall rules PostUp = iptables -A ...
0 votes
0 answers
231 views

Portforwarding Wireguard setup

I setup wireguard on a VPS to use it as a VPN to enable portforwarding for various uses like gaming and NAS setup. I want to open port 45000, 56000 and 40000 for now. I am on Ubuntu 22.4 on 27fiber ...
17 votes
2 answers
82k views

nginx proxy_pass using subfolder

ok, this task should be simple but I just can't get it to work. I would like to have a subfolder after my domain name (actually after the IP of that domain name), which redirects to a specific port on ...
12 votes
4 answers
7k views

Why does logging out of an SSH session hang when using port-forwarding?

I use dynamic SSH port-forwarding (-D) and normal SSH port-forwarding (-L or -R) for many different things, including adding a layer of encryption to my wireless web traffic. The command I use ...
2 votes
1 answer
696 views

ssh port forward connects to bastion instead of remote server

I am facing an issue when I try to connect to remote machine (which is behind bastion host) via ssh local port forwarding. I am looking for the connection flow: my laptop --> Bastion host --> ...
45 votes
7 answers
55k views

Forward local port or socket file to remote socket file

Quick question - I run two linux boxes, one my own desktop and the other my VPS. For security reasons on the VPS end I opted for socket connections to MySQL (/var/run/mysqld/mysql.sock). I know I can ...
1 vote
3 answers
6k views

IPv6 forwarding not working

I have a server in a datacenter with native IPv6 connectivity. (I have a /48 block at my disposal.) I want to use this server as a ipv6 tunnel server over openvpn, but I can't get it to work ...
0 votes
0 answers
673 views

Setting Up WAN + LAN Network with pfSense in VirtualBox - Troubleshooting TCP Connection Issue

Hello, I am currently in the process of configuring a WAN + LAN network within VirtualBox using pfSense (VM) as the router in my LAN. The primary objective is to establish communication between a TCP ...
4 votes
5 answers
3k views

Redirection with IPTABLES while hiding the original port

So, I have my Glassfish server is listening on port 8080. However, I want to have my requests at port 80 while hiding 8080, so that people think my server really runs at 80. How can I do it with ...
60 votes
5 answers
97k views

iptables port redirect not working for localhost

I want to redirect all traffic from port 443 to the internal port 8080. I'm using this config for iptables: iptables -t nat -I PREROUTING --source 0/0 --destination 0/0 -p tcp \ --dport 443 -...
0 votes
1 answer
179 views

Unable to connect to my server

I'm unable to connect to my own server, which has a MySQL database which I want to access. I correctly opened the 3306 port on the router and called my internet provider that confirmed so. But when I ...
0 votes
1 answer
37 views

Ubuntu - server protection when forwarding ports via ssh

I will make a reservation, I am mediocre in Linux systems. I have several Raspbian (Client) devices that have access to the network over LTE (IP over NAT). I have my own server under Ubuntu (server). ...
0 votes
1 answer
216 views

SSHD: Dynamic deny port forwarding

From the current ssh session on a server, what -L params did the client specify? I am trying to build a jumphost using sshd that can be used for port forwarding. The goal is to be able to get into a ...
0 votes
0 answers
84 views

Port forwarding with iptables prerouting not work

I have 3 server server A: 5.161.x.x server B: 193.151.x.x server C: 195.96.x.x I want to forward all traffic from server B and C to server A ,i forwarded Server B to server A with this command: ...
0 votes
0 answers
874 views

Wireguard Site-to-Site connection in Docker ping working but TCP not

I am quite desperate. I am trying to get my site-to-site vpn setup working, but no luck so far. Please don't judge me, I am quite new to the routing problematic. I have a VPS with a public IP 123.456....

1
2 3 4 5
29