Questions tagged [port-forwarding]

Questions about setting up, configuring, and maintaining port forwarding configurations. Be sure the question actually relates to Ubuntu in some way.

Filter by
Sorted by
Tagged with
-3 votes
0 answers
31 views

SSH Connection Refused, even on the server itself

I hope I give enough information here, so give me some slack, as I'm new. I spent a couple hours on this until I finally gave up, and I"ll tell you why. I went to UBUNTU, burned the install dvd ...
Mark's user avatar
  • 1
0 votes
0 answers
56 views

How to connect via SSH to different Qemu instances

I want to connect from my local laptop to remote desktop (let say 170.170.70.70) with two Qemu instances started with parameters (most parameters skipped, I left only those that differs) qemu-system-...
JaSON's user avatar
  • 123
1 vote
1 answer
103 views

UFW blocking port forwarding

I am running Ubuntu Server as a home network router, which works fine otherwise. I also have another server on the network which hosts all of my content and services. So let's say, for example, I'm ...
ohshitgorillas's user avatar
0 votes
0 answers
147 views

Can not open localhost in browser with ssh port forwarding

I have an issue with access to web page that opens via ssh port forwarding: I do: ssh [email protected] -L 7182:10.1.11.82:80 172.22.123.71 is a PC which has access to srever's 10.1.11.82 network ...
Aii Aii's user avatar
1 vote
0 answers
51 views

iptables show ACCEPT but connection got refused

I have a Django application accessible at port 8080. My current iptables is set Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy DROP) ...
NicoCaldo's user avatar
  • 133
0 votes
0 answers
96 views

Forwarding CVAT server hosted on Ethernet to local port via Tailscale

I am trying to expose the CVAT server from my company server machine to my local machine. The CVAT server was hosted using docker by another colleague and I don't know much about it. Here is some ...
Will's user avatar
  • 1
0 votes
1 answer
396 views

Transmission reports "Peer listening port" is "Closed"

After switching Transmission to run on a different Ubuntu host on the same LAN, it's now reporting that the "Peer listening port" is closed, however the port is being forwarded on the router ...
jon hanson's user avatar
0 votes
0 answers
275 views

Share two network interfaces on linux

I have a Linux PC (ubuntu 22.04) with a network layout as below: Internet <-> Router <-> PC <-> edge device <-> Switch <-> APs <-> devices And with two Lan ...
Firouziam's user avatar
  • 797
0 votes
0 answers
30 views

Redirect traffic between LAN and OPT1

In Pfsense, I have two network cards, one connected to a network 192.168.56.2 which is the LAN network and the other one is connected to the network 192.168.58.2 which is the OPT1 network; these are ...
Termal71's user avatar
1 vote
1 answer
291 views

What's the best way to forward a local port to a port on a remote machine that minimizes latency?

For this question, assume all computers involved are running the most-recent Ubuntu LTS release (or similar, such as Ubuntu Server). I have a computer on my LAN. Let's call it "Local Server",...
cocomac's user avatar
  • 3,093
0 votes
0 answers
51 views

Ports closed even though it says they're open?

I've had open ports for minecraft (25565) on my vps for a while now without any issues but they suddenly seem to be closed. But firewalld is active, when I type firewall-cmd --list-ports it lists them ...
Gapi's user avatar
  • 1
1 vote
2 answers
4k views

How to access/view local web server via public IP?

Good day everyone. I'm running an Ubuntu desktop 22.04. I'm new to linux world for about a month or so. I already configure my router for port forwarding. When I was developing this web app in windows,...
Jhunsen Samonte's user avatar
0 votes
1 answer
59 views

What does -L mean in ssh on ubuntu?

I get this error when I try to connect to my server in Ubuntu to a port other than port 80 (Apache). [-i identity_file] [-J [user@]host[:port]] [-L address] I added port 8972 to the list of Apache ...
iman's user avatar
  • 1
0 votes
0 answers
38 views

PortForwarding with IP

iptables -t nat -A PREROUTING -p tcp -m tcp --dport 5000 -j DNAT --to-destination 10.8.0.2 iptables -t filter -A INPUT -p tcp -d 10.8.0.2 --dport 5000 -j ACCEPT I used the code above to forward port ...
Surprise Awofemi's user avatar
0 votes
0 answers
211 views

Port forwarding in Ubuntu 20.04 causes pings to fail

I'm trying to forward ssh port to connect my servers together. Something like this: Local Machine === (ssh) ===> Server A === (ssh) ===> Server B My Servers aren't in a same location. They're ...
Mateo Garcia's user avatar
0 votes
1 answer
934 views

How to limit count of ssh port forwarding per user

i want to limit a nologin system user to make one, or two ssh tunnel. this user use ssh system-user@server-ip -D 1080 -N command need something like maxlogins in limits.conf is there any way to do ...
farzam's user avatar
  • 1
0 votes
1 answer
498 views

Forwarding incoming SSH traffic to a local Socks5 server (or other services)

The scenario is That a cloud Ubuntu server is running a Socks5 proxy server on a specified port; on this cloud server : Socks5 server serving on port 1515 (only local connections accepted) SSH is ...
Sam Jahangiri's user avatar
4 votes
1 answer
720 views

My Ubuntu 22.04 drops all incoming requests from outside of network

I'm having troubles with my new Ubuntu server installation (Ubuntu 22.04.1 LTS - 5.15.0-56-generic x86_64). I ran PHP built-in server, and listen on port 8080 on all interfaces: php -S 0.0.0.0:8080 ...
Anh Tran's user avatar
2 votes
0 answers
225 views

ssh doesnt work with public ip address but just locally

I've a SSH server on my raspberry pi running on ubuntu. For a while I've used normally, then for some reason it stopped working with the public ip and when try to connect get this error: ssh: connect ...
van helsing's user avatar
0 votes
0 answers
307 views

I cant open port on ubuntu 20.04 desktop

I have Ubuntu 20.04 installed desktop pc.Ufw is inactive and all the modem port forwarding properly done.My problem is I cant open the ports to outside.For example 8765 port is listening on ubuntu but ...
Engin Hançerli's user avatar
0 votes
0 answers
198 views

SSH to a VM with local IP using port forwarding on kvm/qemu server

I am struggling to find how I can ssh to a vm from outside just by port forwarding on a kvm server host. And is this possible at all? VM IP - 192.168.122.10 Server public IP - 110.110.110.110 (for an ...
Baequiraheal's user avatar
2 votes
3 answers
658 views

Route all traffic on port 443 (IPv4), to an external IP address on port 80 (IPv6)

I want to host a website from home using the Yggdrasil network. Yggdrasil gives me a static IPv6 address at home (even if behind a DNS). However "regular" users cannot be routed to that IP ...
Thomas Browne's user avatar
0 votes
0 answers
33 views

iptables forward connection port-to-port traffic

I have my server1 that needs to connect and download files from another external server2:8081, an this server sends me list with urls like "server2:41411/". Is it possible to make my server1,...
Banda's user avatar
  • 1
2 votes
1 answer
264 views

I need a simple TCP load balancer in Ubuntu

I would like to create a load balancer for RDP connections only, that’s one TCP port only and would like to avoid anything more complex like Nginx. I don’t need cache, or anything else, just take an ...
Chema's user avatar
  • 21
0 votes
0 answers
157 views

How can I port forward (enabling ports) on my local area network?

I want to allow a node webserver to be accessible using 10.0.0.19:3000 from another pc connected to the same wifi network. Where can I control these settings, or how can I do command majik? I am new ...
some dumb guy's user avatar
1 vote
1 answer
2k views

iptables - Port forwarding with keeping source IP

I have a Ubuntu Server with two interfaces: enp1s0 and ham0 (private network). In interface ham0 my IP-address is 25.70.228.164. Another machine in this network has IP-address 25.11.1.253. I tried to ...
Semyon Bayandin's user avatar
0 votes
1 answer
217 views

SMTP IP forwarding to another machine

Apologies if this is a silly mistake this is the first time ive had to set up port forwarding. I have two machines I have one machine set up as a DMZ (192.168.0.67) when all traffic inbound will hit ...
Donald's user avatar
  • 101
0 votes
1 answer
3k 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:...
user avatar
0 votes
1 answer
142 views

Connecting to multiple Windows RDP via Ubuntu Server

I'm sorry but i always trying to find solutions, search forums etc. but first time i'm lost. This should be easy :( but soo far i fail, maybe i can't comprehend some topics. I have Ubuntu Server 22.04 ...
Krzychu K.'s user avatar
1 vote
0 answers
333 views

bad argument 'PREROUTING'

setting up Home Assistant on UBUNTU virtual machine. Trying to forward port from gateway to virtual machine. I need to put the IP in range of the rest of my network. In terminal: iptables -t -I ...
Shawn Sorrels's user avatar
0 votes
2 answers
252 views

Increase security for ssh login via public / private key: use port forwarding in router or in server?

I want to access my Ubuntu server from the internet via SSH storing the client's public key on that server. In order to increase security I want to use a different port than 22 to reduce risk of a ...
user7468395's user avatar
0 votes
1 answer
1k views

Can't access my Flask App on Ubuntu Server 20.04 LTS from the Internet

I recently bought a Raspberry Pi 4 (8GB) and installed Ubuntu Server 20.04 LTS on it. My goal is to turn it into a server to host all my Python scripts (Flask Websites/Telegram Bots/etc) on it. [...
TECH-SAVVY-GUY's user avatar
0 votes
0 answers
112 views

vsftp - folders cannot be listed when connection is from outside local network

I just installed vsftpd, configuration is following: listen=NO listen_ipv6=YES anonymous_enable=NO local_enable=YES write_enable=YES dirmessage_enable=YES use_localtime=YES xferlog_enable=YES ...
Michalex's user avatar
1 vote
1 answer
758 views

Port forwarding for SSH via VPN

In short, I set up WireGuard on a remote machine, connected my Raspberry PI to it, and now I want a forwarding port so that I can connect to my PI via the public IP of my machine. I tried to follow ...
Maximkm Production's user avatar
0 votes
1 answer
3k views

How to stop forwarding a port?

I was trying out local port forwarding and I used to following command: ssh -L 8080:www.ubuntuforums.org:80 <host> I want to change the address where 8080 is forwarded. Using the same command ...
galtech's user avatar
1 vote
0 answers
115 views

How to set up UFW port forwarding from non-privileged port to port 22 on the same computer

On my Ubuntu server, I am running an SSH server (port 22). I want to set up UFW such that all incoming connections are blocked, except through port 12345. External traffic arriving at port 12345 ...
Flux's user avatar
  • 485
-1 votes
1 answer
935 views

How to redirection traffic between interfaces on ubuntu 18.04

i have server that has two interfaces (enp1s0 : 192.168.1.10 and enp2s0 : 10.20.30.30), enp1s0 is public interface that we can connect to server with it and enp2s0 is private and isolate interface. on ...
arminbiklari's user avatar
1 vote
0 answers
51 views

No response on opened port

I successfully installed a VPN script on my server and can see that it was configured to listen on port 54321 which is confirmed by sudo lsof -i -P -n | grep LISTEND. The VPN is running, I see the ...
Armitage2k's user avatar
1 vote
0 answers
689 views

How to forward port from Ubuntu to Windows 10?

How can I forward port 80/443 from Ubuntu to my Windows 10 port 80/443? I want to port forward from Ubuntu to Windows 10, I'm actually open to any suggestion on the best way to do it, I'm thinking of ...
Surprise Awofemi's user avatar
0 votes
0 answers
267 views

Why do I see login requests for various ports although the router and the firewall only permit port 22?

I want to login into the Desktop of my Ubuntu 18.04 machine remotely from the internet. I therefore enabled port forwarding for port 22 in my (fritz.box) router. Additionally I activated the firewall ...
user312087's user avatar
3 votes
2 answers
2k views

Port Forwarding with iptables is not working

I have two servers: server 1 with IP address 10.8.0.1 server 2 with IP address 10.8.0.6 I want server 2 work as a proxy for a website that is hosted on server 1. So I use the following commands: sudo ...
Admia's user avatar
  • 145
1 vote
0 answers
59 views

Firewall setting are correct but port still closed form outside

I setting up machien for connect to postgresql remotly I check somthing and it's apeare all things is correct Checking the port status : $> sudo netstat -tulpn | grep LISTEN | grep 5432 tcp 0 0 0....
Ali najjar's user avatar
0 votes
1 answer
2k views

What's the difference between address 0.0.0.0, [::] and *?

If you run something like ss -tunlp (or netstat -tunlp) you get a list of listening ports. The standard format should be <host>:<port>, eg. 127.0.0.3:5000. But you also see 0.0.0.0:<...
étale-cohomology's user avatar
-1 votes
1 answer
183 views

How do I open a port on my Ubuntu 14.04 virtual server to my Mac from which it runs? [closed]

I’m running a virtual Ubuntu (14.04) box, using Vagrant, on my Mac Big Sur machine. I would like to open port 1234 on my virtual machine to my Mac. From the virtual machine, I can see these ports ...
Dave's user avatar
  • 2,015
0 votes
0 answers
382 views

multipass ssh port definition on creation of vm

Is there a way to define the port that ssh is forwarded from guest machine? Right now it a randomly port is picked on the host machine.
Christoforos Vasilatos's user avatar
0 votes
0 answers
655 views

Listening port's with service name

I'm looping in listening ports and when looping I want to get the exact service name of the ports for further activity. So how can I get the service name of the ports.
lee's user avatar
  • 1
0 votes
1 answer
198 views

Unable to establish connection over specific port in devices connected via VPN

I have an Ubuntu virtual machine on the Google Cloud Platform, which runs an OpenVPN server. In my office, an Ubuntu laptop and a Windows PC act as OpenVPN Clients. Hence, on the VPN, the following ...
Ishwar Venugopal's user avatar
-1 votes
1 answer
2k views

Cannot access Apache web server from Wan side

I am running apache 2.4.46 on parrot linux, I modified the default /var/www/html/index.html using html for educational purpose. I can access this server on LAN but I want to access this apache server ...
sanjai cyber's user avatar
0 votes
0 answers
85 views

VDS provider blocking port that I need. How to forwarded over other VPS

I have an Ubuntu 20.04 LTS. I was surprised to get to know that the VDS provider blocking port that I must to have opened. There is no way for me to push them to open it. I have to organize that port ...
Harvi's user avatar
  • 1
0 votes
0 answers
139 views

Ubuntu port forwarding, Desktop 64bit, wifi, raspberry pi 4 B 8 gb

I have come across a problem while using Ubuntu 64bit desktop for raspberry pi. I would like to use my raspberry pi 4 as a Minecraft server, having completed the server set up, I am able to get a ...
Darth21426's user avatar

1
2 3 4 5 6