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.

138 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
1 answer
209 views

Accessing a LAMP webserver that's behind a Ubuntu VM acting as a firewall

I currently have two VM's set up in the following manner: /-----------------------\ /-----------------\ | Ubuntu VM | /---------------\ ...
user3593245's user avatar
3 votes
0 answers
182 views

Webpage can not get access from the world!

I have installed a fresh Apache with a fresh Ubuntu server. I did not make any changes to my server yet. The default Apache website is visible from other PCs inside the private network. The ports 80 ...
MJC's user avatar
  • 31
2 votes
0 answers
254 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
2 votes
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
2 votes
0 answers
1k 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 ...
buttercrab's user avatar
2 votes
0 answers
3k views

Why does remote SSH connection time out?

My server runs Ubuntu Server 14.04. When connecting over SSH from a local LAN client it works fine. When I connect using a different machine from an outside network, I get 'connection timed out'. I ...
markjan's user avatar
  • 121
2 votes
2 answers
193 views

One port over wifi, other use lan

I Am working in a place where my imap for e-mail (using thunderbird) is only open over wifi. The rest will mostly work only over wired (and is quicker anyway). So what is the best option to use my ...
michel.iamit's user avatar
2 votes
1 answer
3k views

How to stop the local port forwarding?

I was trying local port forwarding and I hit the following command: ssh -L 8080:www.ubuntuforums.org:80 <host> in order to see what will happen. Now, on my computer, when I hit "http://...
orezvani's user avatar
  • 433
2 votes
0 answers
2k views

Port redirection for a specific (dynamic) IP using iptables script

What I want: Incoming TCP and UDP connections on port 900 from the resolving IP address of myip.dyndns.org (dynamic IP) should redirect to port 5050 on the local machine. All other IP addresses ...
viriol's user avatar
  • 21
1 vote
1 answer
619 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
1 vote
0 answers
119 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
  • 159
1 vote
1 answer
1k 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,414
1 vote
0 answers
462 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
1 vote
1 answer
985 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
1 vote
0 answers
137 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
  • 505
1 vote
0 answers
70 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
865 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
1 vote
0 answers
69 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
1 vote
0 answers
110 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 ...
Martin's user avatar
  • 11
1 vote
0 answers
475 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....
Raj aryan's user avatar
1 vote
0 answers
31 views

Port Forwarding Ubuntu to Debian server

I have xxx Ubuntu 18.4 Desktop which is connected to the Internet and have a Debian Server which is not connected to the Internet directly but hosting a cacti server on the same network with different ...
Sayeed's user avatar
  • 11
1 vote
0 answers
761 views

Port Forwarding between 2 hosts in VPN

I'm having some problems while trying to set port forwarding rules on a Ubuntu machine. I'll explain my situation.. I have a Raspberry in my local home's network and I have a webserver installed on ...
Samuele Allegranza's user avatar
1 vote
0 answers
419 views

Cannot remotely connect with SSH - Operation timed out

I can SSH into my remote Ubuntu 18.04 device connecting to a local IP address, but I can't do the same connecting to my external IP (edit: from inside my local network). Things I've tried: Port ...
joepio's user avatar
  • 111
1 vote
0 answers
369 views

Port Forwarding to Glassfish Web Services Application on Ubuntu Not Working

I have been working on this for a couple of days now, and it is probably something very simple that I am overlooking, but I can't seem to get this to work. So, any help would be greatly appreciated! ...
Gaspar's user avatar
  • 11
1 vote
0 answers
726 views

How to forward port to a host side?

I want to forward the UDP port 20595 on the host side in order to play a multiplayer game : Yet I am not on my server IP, I am really new to this. But I know from this question that I have to do ...
Revolucion for Monica's user avatar
1 vote
0 answers
629 views

UFW: Forward port to another IP on the same interface/subnet

I need to forward port X to another IP within subnet. There's an answer on ServerFault that is exactly what I need, however, UFW documentation states: # Uncomment this to allow this host to route ...
Andrejs Cainikovs's user avatar
1 vote
1 answer
2k views

unable to bind to requested udp port 43210 (ipv4)

I'm trying to run "BombSquad" game it requires to bind to udp port 43210 , i have no idea how to bind to udp port. i ran ./bombsquad_server command this is the output: bombsquad server wrapper ...
Amir's user avatar
  • 35
1 vote
0 answers
3k views

How to open port for transmission bittorent while using internet from USB tethering?

I have a router and an old desktop pc running Lubuntu 16.04 64Bit. I use internet on my desktop PC like this: I connect my android phone (Marshmallow, Lenovo K 4 Note) to the wifi network of my ...
NFS Most Wanted's user avatar
1 vote
0 answers
3k views

Cannot access nginx site from external IP

So I'm having a quite strange problem. I've just bought an HPE ProLiant Gen8 microserver to run Plex and webserver. So first off I installed Plex and port forwarded 32400 on my Asus RT-AC66U router. ...
Mejenborg's user avatar
1 vote
1 answer
855 views

Can't open 4444 port in gufw

I've added a SSH rule for adding 4444 port in my distro through gufw but when I run nmap -sV 10.9.0.136 -A it shows : Starting Nmap 7.40 ( https://nmap.org ) at 2017-04-25 11:30 IST Nmap scan ...
Random Raita's user avatar
1 vote
1 answer
839 views

Setting Up Static IP Address With GUI

I am new to linux and am trying to set up a static IP address so I can port forward. I am using version 16.04 and was wondering if there was an easy GUI to access or a step by step by tutorial.
iceblade2097's user avatar
1 vote
1 answer
871 views

Port forwarding

how to configure local ports to allow connections from other hosts in LAN, in order to reach a web application through my ssh tunnel ? I have something like this: ssh -L1000:localhost:80 10.10.10.1 ...
new_py's user avatar
  • 11
1 vote
0 answers
2k views

DNS Server Bind9, Want to Map host IP with Port to Hostname

I want to set up DNS server which named "home.local" for local usage to mapping IP and port to specific hostname. I already set up DNS server with Bind9 on Ubuntu 15.10 ,and it working smoothly with ...
Steven Davidson's user avatar
1 vote
0 answers
2k views

rdesktop: windows server does not answer

I am trying to connect to a RDP Windows server. This configuration works fine in Windows. But not in Ubuntu. For whatever reason, when using rdesktop (or the remmina UI), the server does not respond. ...
Ricardo Cruz's user avatar
1 vote
0 answers
407 views

Need to restart rinet manually on reboot

I redirect an internet connection through my desktop from WiFi to Ethernet for use by a Raspberry Pi. I then use rinet (manpage) to redirect one port back through the desktop so that I can access a ...
nayrangnu's user avatar
1 vote
0 answers
51 views

Determining how port forwarding is configured

Ubuntu Trusty box in AWS I have tomcat bound on port 8080 I installed apache and it automatically bound to port 80 curl http://<externalIP>:80 I see the tomcat start page(original behavior) ...
Steve Jackson's user avatar
1 vote
0 answers
2k views

Port Forward Flask Server in local network

I have a Flask app from flask import Flask app = Flask(__name__) @app.route('/') def index(): return 'Hello, world!' if __name__ == '__main__': app.run(host='0.0.0.0', port=7777, debug=...
amigcamel's user avatar
  • 242
1 vote
0 answers
1k views

Why can't I connect to my localhost port from a remote computer?

I'm using link-grammar server to convert sentences into semantic graphs. It provides an API though a port to do the above process. It's configured to works through port 9000 of localhost. I used to ...
Janaka Chathuranga's user avatar
1 vote
0 answers
364 views

SSH outside the local network

I have Ubuntu 14.04 LTS installed on a Toshiba Satellite L655. I've recently installed an SSH server on the machine and it works fine when connecting to it using 192.168.1.3 but when I try that using ...
Ali Almoullim's user avatar
1 vote
0 answers
6k views

how to open a port under Ipv4 instead of Ipv6

How I can open a port under Ipv4 instead of Ipv6 on ubuntu tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN - tcp 0 0 127.0.1.1:53 0.0....
Nadya Nux's user avatar
  • 141
1 vote
0 answers
336 views

Linux Web Server Dosen't always allow external connections

I have been having this problem with where it will allow external connections for about 30 minutes but then doesn't allow any? I have port forwarded and all that. I turned it on last night and I ...
mattmill98's user avatar
1 vote
0 answers
1k views

How to create a static wifi with hostapd UBUNTU 14.04?

I am trying to connect my android phone with wifi ubuntu. Things I have tried: 1) ap-hotspot -> , phone stuck in obtaining ip address, then avoided due to poor internet 2) manually configured ...
Unbound's user avatar
  • 117
1 vote
1 answer
2k views

I can't get my ubuntu server VirtualBox guest with bridged adapter seen outside of my lan, although port forwarded to 80

I have installed Ubuntu Server 14.04.1 on VirtualBox. With LAMP all configured. The box has static ip 192.168.1.104 and bridged to my host's Wireless adapter. I can successfully access Apache's index ...
assem's user avatar
  • 11
1 vote
0 answers
740 views

Port forwarding out multiple VLAN interfaces that have same IP address

So I have an Ubuntu machine with multiple VLAN on an interface eth1 and each VLAN has the same IP address (172.16.0.2). I need to be able to simultaneously telnet into a rack of devices that are also ...
user2692502's user avatar
1 vote
0 answers
2k views

Redirect requests to my external IP/port to a internal IP/port?

I have a dedicated server running KVM virtualization with n public IP addresses dedicated to n-1 web-facing virtual machines. Now I'd like to set up some web-facing VM's that don't have a dedicated ...
Nickolai Leschov's user avatar
1 vote
1 answer
3k views

How to change uTorrent's port from 8080 to another one?

I'm new to Ubuntu and still learning how to use it. Recently, I've been trying to install uTorrent, which I already was able to do so, but I need the port 8080 free to use run tomcat/glassfish and on ...
André Fróes's user avatar
0 votes
0 answers
26 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
0 answers
45 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
0 answers
37 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
210 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