Skip to main content

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

Setting Up NAT Port Forwarding and Nginx on Mini PC with Ubuntu Server 24.04

I have a mini PC on that pc I want to run my dynamic web application. I am trying to do the following things install host ubuntu server LTS 24.04 install guest Ubuntu server LTS 24.04 using kvm/qemu ...
sujan bastola's user avatar
0 votes
0 answers
63 views

OpenPGP port (1194) can't be opened. OpenVPN-AS

I installed Openvpn-As on my Ubuntu 20.04 server and used default settings for everything. I tried connecting to my VPN using the OpenVPN client on mobile locally and it works with no issues. I was ...
RevolverSnake412's user avatar
0 votes
1 answer
40 views

How to make backend server hosted by Ubuntu Server VM (hosted with Prxmox) accessible from public network?

I have set up a yaml file in folder '/etc/netplan' following the template: network: version: 2 ethernets: eth0: dhcp4: false addresses: - my public ip from 'curl ipinfo.io/...
houlin he's user avatar
3 votes
1 answer
310 views

What are some precautions to take when doing port forwarding on desktop to establish ssh connection with laptop?

I have a home desktop in another city and a laptop I bring to campus both running ubuntu 22.04.4. I would like to establish a ssh connection from the laptop to the desktop to retrieve and write files. ...
volticus's user avatar
0 votes
0 answers
102 views

Ubuntu server 22.04 port forwarding issue

I am trying to use an old Shuttle xPC as a home server. I've installed Ubuntu Server 22.04, Cockpit (with Navigator and File share), AdGuard Home, qBittoreent, Jellyfin and Nextcloud. On my home ...
Методи Шотлеков's user avatar
0 votes
1 answer
105 views

80; Connection refused [duplicate]

I'm trying to post tar archive from one remote server to another, but while I execute the command curl --user "root:$password" -X POST -T archive.tar ip-address I get curl: (7) Failed ...
palmasd1's user avatar
-1 votes
1 answer
123 views

Headless RaspberryPi SSH connection through Ethernet USBC adapter

I have a headless Raspberry Pi with SSH enabled. I can program with no issues using VSCode remotely using a Windows Laptop. But, I'm now using a one of those "fancy" new laptops with Linux ...
lchavez's user avatar
  • 17
6 votes
1 answer
846 views

Ubuntu 22.04, very slow boot and no ethernet after port forward

Yesterday I(newbie on linux) port forwarded the port 42420 to play Vintage Story with some friends. After enabling it on the router and telling firewall-cmd what port to allow, we played without any ...
Vasile Mironica's user avatar
0 votes
0 answers
62 views

Port forwarding ports to one hosts

I want to forward a port to another port in a Linux system (Ubuntu) (I don't want to do this between two Linuxes and I want it to be done only in one Linux itself) Is there a way to forward a port to ...
hamed ghanbarian's user avatar
0 votes
1 answer
311 views

Port Forward for LAN

I bought a server and have Ubuntu 22.04 installed. When I run various Github projects like Text Generation Webui, Automatic1111 Stable Diffusion, etc., how do I forward the port to access it from my ...
rbur0425's user avatar
  • 103
0 votes
1 answer
718 views

How to determine what's listening to port 25 on localhost?

How do I determine what's running on port 25 below? nicholas@mordor:~$ nicholas@mordor:~$ ss -tlpn sport 25 State Recv-Q Send-Q ...
Nicholas Saunders's user avatar
0 votes
0 answers
43 views

cleaning up and repairing server after multiple hard shutdowns

I've been having some issues lately with my ubuntu server. First it started having issues port forwarding my jupyter notebook server. Then I was having issues ssh in to the server. When I connected ...
user3476463's user avatar
0 votes
0 answers
294 views

How to deal: external Jenkins port does not work

I have jenkins service working fine on internal and local levels (I can just open localhost:8080 or 192.168.x.x:8080 in the browser and it gives me Jenkins "sign in" page) But I have ...
SageCat's user avatar
  • 101
2 votes
2 answers
2k views

I am unable to ssh into my computer using the public IP. What am I doing wrong?

I am trying to ssh into my computer from an external source using my public IP address. but keep getting the error message ssh: connect to host <public_ip> port 2222: Connection refused. What ...
alpastor's user avatar
  • 121
0 votes
0 answers
372 views

Remote SSH access to a ubuntu server in a different network with port forwarding

I am badly facing a stone wall while trying to remotely ssh into a local machine via Port 22 from anywhere outside my local network. I have a local machine running with Ubuntu Server and a Fritz box ...
Reeen's user avatar
  • 1
0 votes
1 answer
1k 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
901 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
1k 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
130 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
  • 163
0 votes
2 answers
3k 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
649 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
1 vote
1 answer
2k 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,622
5 votes
3 answers
16k 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
311 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
299 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
1k 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
904 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
1k 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
283 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
1 vote
0 answers
338 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
1k 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
2 votes
1 answer
616 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
2 votes
1 answer
3k 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
419 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
5k 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
217 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
534 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
489 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
2k 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
162 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
1k 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
5k 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
156 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
  • 515
-1 votes
1 answer
1k 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
83 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
999 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
317 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
3k 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
  • 155
1 vote
0 answers
75 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
4k 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
2 3 4 5 6