Questions tagged [port-forwarding]
port-forwarding on firewall or via SSH
1,440 questions
0 votes
0 answers
47 views
Port forwarding to external VLAN through UDM Pro
I am using a UDM pro for dual WAN internet edge. The UDM pro is uplinked to a Cisco N9K series switch that handles our internal vlans and internet distribution / switching. We have a server that ...
0 votes
1 answer
131 views
How to enable a Vagrant/VirtualBox virtual machine & NFS by rules in host machine UFW firewall? (vagrant up freezes at NFS mounting)
When running vagrant up, it gets stuck at the point when it's trying to mount the NFS shared folders. https://github.com/hashicorp/vagrant/blob/f2960d545864e1b644fe7fb0f3b82fec9895dd13/website/content/...
0 votes
0 answers
94 views
How to forward a port by using PuTTY and the connection to the server is made through a (SOCKS) proxy?
I have setup a PuTTY connection to use a SOCKS 5 proxy in order to connect to a remote machine. However port forwarding does not work (for me) in this scenario. I have setup an identic connection ...
0 votes
1 answer
66 views
Forwarding a port in very limited context on Linux
I need to set up port forwarding (for SOAP protocol) on a custom, limited distro of Linux from 8111 on localhost to port 8111 on the externally visible port on host's IP address (say 1.2.3.4). (That's ...
0 votes
1 answer
460 views
Forward Docker port in firewalld only for specific interface
I'm trying to secure a VPS running Docker containers so that their exposed ports are only accessible through a VPN interface (in my case it's Tailscale). In order to do that, I read about firewalld ...
0 votes
0 answers
31 views
DMZ host unable to reach itself using own public ip [duplicate]
I've enable DMZ in my router on one of the systems with reserved dhcp address in the LAN. From DMZ host I'm unable to ping or http or ssh to itself using own public IP. However I can connect to the ...
0 votes
1 answer
160 views
Postfix receiving "Unable to bind to server ldap://...." - server is available however
I have the following postfix configuration: virtual_mailbox_maps = ldap:/etc/postfix/ldap-users.cf virtual_mailbox_domains = ldap:/etc/postfix/ldap-domains.cf virtual_alias_maps = ldap:/etc/postfix/...
0 votes
1 answer
264 views
Why is Apache listening on SSL-enabled server port 80?
I have setup a vhost for a domain for port 80: <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName thesolentmetropolitan.com DocumentRoot /var/www/10/thesolentmetropolitan....
-1 votes
1 answer
178 views
Port Forwarding via WireGuard Tunnel Results in Connection Refused
I have two servers connected via WireGuard: an on-premises server (server1, WireGuard IP 10.0.0.2) and an cloud server (server0, WireGuard IP 10.0.0.1). My goal is to use server0 as a gateway to ...
4 votes
3 answers
561 views
How to Open ports on AWS with Windows Server
I’m using Windows Server on AWS and need to open various ports for the REST server, remote debugger, and so on. I’ve configured them in the three places I’m aware of: Windows Firewall AWS Security ...
0 votes
1 answer
517 views
How do I change the listening port inside of a nextcloud docker container?
Either via configuration file editing or by using a command, I am using docker installation and I need the nextcloud instance to be able to access host machine's localhost for database access so I use ...
0 votes
1 answer
725 views
NAT (forward all port) vs DMZ. Whats the difference?
I have a network behind an OPNsense firewall. The OPNsense firewall's WAN interface is the only Ethernet device connected to a router provided by the ISP. I must maintain this router for VoIP phone ...
0 votes
1 answer
522 views
Access Wireguard client's ports from separate LAN host
I have a VM running on my LAN with IP address 192.168.1.99. This VM is running Wireguard as a client, connected to a remote ProtonVPN server (I got the wg config from Proton). VPN connection works ...
0 votes
0 answers
108 views
Forwarding port 80 to any other port on other machine/IP
Long story short - I have stubborn ISP that blocks ports 80 and 443 on NAT port forwarding. I have private public IP and my server is exposed to the Internet - for example I can setup Minecraft server ...
4 votes
2 answers
674 views
Can Windows firewall WF.msc do TCP port forwarding at all, like Linux iptables does?
Client machines can reach TCP 25 on "gateway" server (we control this segment and all firewalls there). This "gateway" server can reach SMTP relay out there somewhere (we don't ...
1 vote
1 answer
117 views
Windows Firewall creating custom rule for port forwarding - confusing fields [closed]
I've got quite some experience with TCP port forwarding in the UNIX world (netcat, iptables) but now I need to do the same on Windows Server 2022. Client machines can reach TCP 25 on "gateway&...
0 votes
1 answer
164 views
How to forward access to a port on one interface to another interface's port on the same machine?
Basically, I've got a service listening to eth0's 10.16.1.1 on port 1000 on a Ubuntu 22.04 machine. This service doesn't allow to listen to a catchall like 0.0.0.0 (outside of my control). This is an ...
0 votes
0 answers
181 views
How to forward traffic to another interface in same host
RHEL8. I need to forward only sip/tcp and rtp/udp packets from ens192 to ens0. But for testing I am trying to forward all traffic from ens192 to ens0. ens192 is the main int of VM, IP - 10.10.10.3 ...
0 votes
1 answer
143 views
Ubiquiti EdgeRouter-X port forwarding limited to LAN only
I am wanting to swap from my existing back-end reverse proxy (NGinx, which is currently working) to a new HAProxy solution. Note: I have "Enable hairpin NAT" set. I change the port-...
0 votes
1 answer
527 views
Port Forward to WireGuard on PFSense
I was using my secure PFSense router as an edge router. WireGuard was installed on PFSense so devices could join the network remotely. I have been joining my network successfully for a very long time. ...
0 votes
2 answers
664 views
Is it possible to forward ports between two servers using socat and socks5 proxy?
We have server1 and server2 on server2 a socks5 proxy server is installed and listens on TCP port 1080 on server2 an openvpn server is installed that listens on TCP port 1194 server1 is connected ...
1 vote
1 answer
410 views
Solved - port-forwarding to KVM VM on Ubuntu
I,m configuring port forwarding to KVM VM on Ubuntu 22.04. I can connect to VM from outside of host server. But it failed from VM itself. my host's IP : 222.222.222.222 vm's IP : 192.168.122.201 ...
0 votes
1 answer
87 views
2 OpenVPN connections routing to forwarded port only works when 1 connection is down
I have a home network with a DSL router. One machine on the network opens a openvpn connection to a third party vpn provider. This machine then acts as a router for all machines on my network that ...
0 votes
0 answers
113 views
How do I create a limited user that can only do SSH port forwarding?
I need to create a user on my server that is restricted to only performing SSH port forwarding. This user should not have any other capabilities, such as reading files or executing commands. The ...
0 votes
0 answers
163 views
Proxmox Setup with Email Server and multiple Webservers - Need Help, can not send Emails from Webserver VMs
I run a Proxmox server that runs an email server and several web servers as VMs. The server has two external IP addresses configured to the Proxmox host via the /etc/network/interfaces file. The ...
0 votes
0 answers
180 views
Wireguard and Ubuntu 22.04. Forcing traffic from port 25 over VPN
So Im hosting a server in a docker container which is a client in a VPN network. I Cant send any egress traffic out of port (say ummm 52) through the host. That box is a client to a wireguard server. ...
0 votes
1 answer
757 views
kvm libvirt: Port Forwarding via nft not working
I use KVM to virtualize a Guest-Linux-Mint on my Host-Debian12. The Guest is obviously configured well with NAT: I can ssh into the Guest from the Host, I can reach the Internet from the Guest. But I ...
0 votes
1 answer
1k 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 /...
2 votes
2 answers
454 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
3k 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
543 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
384 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
228 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
215 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
218 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
1k 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
456 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 ...
0 votes
2 answers
262 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 ...
3 votes
2 answers
3k 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 ...
1 vote
1 answer
1k 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 ...
0 votes
1 answer
236 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 ...
0 votes
1 answer
2k 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 ...
0 votes
0 answers
447 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
193 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
462 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 ...
2 votes
1 answer
2k 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 --> ...
0 votes
0 answers
1k 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
2 answers
5k 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
1 answer
539 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
118 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). ...