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
19 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 ...
user avatar
0 votes
2 answers
51 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 ...
user avatar
0 votes
1 answer
66 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. [...
user avatar
0 votes
0 answers
53 views

Ubuntu 20.04 ssh possible but NO Access on custom port

Fresh install of 20.04 LTS on Small Form Factor Intel user@host:~$ cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 76 model name : Intel(R) Pentium(R) CPU ...
user avatar
0 votes
0 answers
28 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 ...
user avatar
1 vote
0 answers
38 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 ...
user avatar
0 votes
1 answer
48 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 ...
user avatar
1 vote
0 answers
36 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 ...
user avatar
  • 425
-1 votes
1 answer
28 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 ...
user avatar
1 vote
0 answers
13 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 ...
user avatar
0 votes
0 answers
98 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 ...
user avatar
0 votes
0 answers
43 views

Only allow Minecraft Server through Hamachi

I have a home server running multiple services. I have a minecraft server on a docker container on port 25565, but i don't want the other services to be accessible through Hamachi. How can i do such a ...
user avatar
  • 11
0 votes
0 answers
44 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 ...
user avatar
2 votes
1 answer
376 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 ...
user avatar
  • 135
0 votes
0 answers
19 views

Port forwarding Headless VM in a VM

At the moment I work on a Project, where I have to setup a Headless VM with VirtualBox within an Ubuntu VM. I want access the headless VM from outside with a Remote Desktop connection. For accessing ...
user avatar
1 vote
0 answers
31 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....
user avatar
0 votes
0 answers
54 views

Redirect Transmission port 9091 to 80 on Ubuntu serving with Nginx

The admin of my network is ceaselessly disabling and enabling ports. I want my transmission Web UI to be served over port 80 instead of 9091. My server is running on Nginx not Apache (Apache solution)....
user avatar
-1 votes
1 answer
293 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:<...
user avatar
0 votes
0 answers
40 views

Unexplained port blocking

I'm having an issue with Ubuntu 21.04, where I'm unable to access ports that are behind Port Fowarding/DNAT on my router. I have a working port forward on my router from (Public IP):443 to 192.168.2....
user avatar
  • 1
-1 votes
1 answer
112 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 ...
user avatar
  • 1,615
0 votes
0 answers
186 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.
user avatar
0 votes
0 answers
68 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.
user avatar
  • 1
0 votes
0 answers
184 views

UFW Port Forwarding w/ Wireguard

I forgot where and how I came up with these rules, and I'm trying to clean them up. I'm trying to forward ports 24454, 24455, 4000 and 25567 in on MYSERVER to 10.5.0.3. I'm also trying to forward port ...
user avatar
  • 325
0 votes
0 answers
402 views

Cannot connect to nodejs app on port 3001

I have two nodejs applications (server A and server B) running on Ubuntu Server 16.04, and two clients (client A and client B) that make requests to that servers. Server A listens for requests from ...
user avatar
0 votes
0 answers
26 views

Port forwarding issue on Client Side

I had been setting up my own OpenVPN server on my Raspberry Pi and I connect on it using my OpenVPN client software in Windows. I successfully access the internet and when I check my IP, I see my ...
user avatar
0 votes
0 answers
99 views

How to open port in client side in windows using my own openvpn server on linux?

I had been setup my own openvpn server in my raspberrypi and i connect on it using my openvpn client software in windows and i success to access the internet and when i check my ip i see the my ...
user avatar
0 votes
1 answer
55 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 ...
user avatar
-1 votes
1 answer
455 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 ...
user avatar
0 votes
0 answers
43 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 ...
user avatar
  • 1
0 votes
0 answers
91 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 ...
user avatar
1 vote
1 answer
175 views

Port Forwarding rule to make local machine accessible through WAN

I wish to set up a configuration on my home network on one of my machines. Namely, I wish to make it feasible to access it via ssh (the machine runs dropbear for ssh) but externally. Here's an "...
user avatar
  • 155
0 votes
1 answer
3k views

Ubuntu 20.04 gateway, iptables NAT and port forwarding

i am in a maze, i try in vain to setup the rules to be able to acces from internet my internal web server (192.168.12.10). at home, i have an Ubuntu 20.04 gateway (192.168.12.1) with two interfaces : ...
user avatar
2 votes
1 answer
9k views

can you set socks5 proxy from Linux command line?

I've managed to set a socks5 proxy server from Linux towards another server like this : ssh -D 9090 -N -f user@192.168.76.102 Then I changed the settings in mozilla browser to use the socks proxy, and ...
user avatar
  • 43
0 votes
0 answers
79 views

Port-forwarding for a minecraft server on 20.04 LTS

I've been trying to play with my friends online in Minecraft for a while now and the two methods I tried ended up failing. The first method was to use hamachi, however its tunneling engines couldn't ...
user avatar
2 votes
0 answers
635 views

Port forwarding In Ubuntu 20.04 with minikube

I'm trying to use minikube in my server. I've finished setting about kubernetes and I can get access to 192.168.49.2 which I got from minikube ip in server ssh (curl). Let's say my server's public ip ...
user avatar
0 votes
0 answers
795 views

Netstat doesn't show a process for port 53, how can I unbind the port and stop listening on it?

I am trying to install AdGuardHome but it is unable to bind to 0.0.0.0:53 because it is already being used. I tried their automated fix, as well as manually following their instructions: Deactivate ...
user avatar
1 vote
1 answer
118 views

Server only reachable locally

Hi I wonder if anyone can try to point me in the right direction... I have a simple web server. It works fine but now that I'm setting it up to run in the cloud I am having trouble connecting to it ...
user avatar
  • 31
0 votes
0 answers
42 views

Can I setup a Ubuntu desktop as a switch?

I want to setup a VBox Ubuntu to receive and send packets using a single interface from/to the rest of connected PCs.
user avatar
  • 11
0 votes
1 answer
137 views

What do these iptable rules mean?

These: sudo iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE sudo iptables -A FORWARD -i tun0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT sudo iptables -A FORWARD -i wlan0 -o tun0 -j ...
user avatar
0 votes
1 answer
212 views

How to forward ports for X11 on Proxmox to a MV

Well, I read that I needed to open ports 6000-6063 and also 117 (UDP). I tried it without luck: post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 6000:6063 -j DNAT --to 192.168.x.xxx:...
user avatar
  • 111
0 votes
0 answers
69 views

Port 80 forwarding on a broadband connection

We have an Ubuntu 20.04 server that connected to a broadband on enp1s0. We also have a security camera connected to the server on iface enp2s0. The camera has a gateway on 192.168.240.1 and serves its ...
user avatar
  • 1
1 vote
1 answer
295 views

Network routing and port forwarding problem

I have 2 networks (graph in link below) A: 10.0.0.0/24 B: 192.168.1.0/24 In network A, all devices are connected via a switch. Some devices provide certain services such as ssh or access to a database ...
user avatar
0 votes
1 answer
2k views

Failed to connect to 127.0.0.1 port 80: Connection refused

I am unable to connect to port 80 on an ec2 VM. I even tried this below command. sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT But no change in the response. My security group inbound rules also ...
user avatar
  • 101
1 vote
1 answer
228 views

In FTP active and passive modes changing ports

I am new to FTP protocol, here i have read about active and passive modes in ftp. Active mode: means client will send port number to server for Data communication. Passive mode:means server will send ...
user avatar
  • 13
0 votes
2 answers
1k views

Ubuntu 20.04 Server firewall

if I type ufw status verbos my system returns status: inactive; but when I was scanning my ports for a specific port with nmap, it returned a closed state for my port. What else besides the firewall ...
user avatar
  • 3
0 votes
0 answers
219 views

How to open port in client side in windows using my own pptp vpn server on linux?

I had been setup my own pptpd server in my vultr ubuntu server and i connect on it using my client built in in windows and i success to access the internet and when i check my ip i see the vps ip ...
user avatar
1 vote
0 answers
71 views

how can users have their private or virtual ports?

I want to make a server where users can connect and start their own private database server listening on port 9999. So the user logs in with ssh and port forwarding of port 9999 and starts the ...
user avatar
  • 11
2 votes
1 answer
3k views

Nmap port scan shows all 65000 ubuntu (20.04) ports closed

Forgive me if this is a stupid question, I'm currently messing around with nmap / metasploit for educational purposes. I got a bit sick of using metasploitable OS so I thought I'd have a bit of fun ...
user avatar
1 vote
0 answers
281 views

Unable to forward port on "tp link archer c6"

m using my own local Ubuntu server 18.04, and trying to host that world wide. i am also using Tp link Archer c6 rourter for port forwarding. I can forward port 21, but unable to forward any of others....
user avatar
3 votes
2 answers
7k views

VNC Server port is closed

I installed TigerVNC server on my Ubuntu server but I can't connect to it. The server is running but when I try to scan for open ports (in LAN) using my phone, 5901 is closed. Output of nmap localhost:...
user avatar
  • 742

1
2 3 4 5 6