port-forwarding

How to define port forwarding

How to define port forwarding I run a server with a web server running as a rootless podman container. This exposes ports 10080 and 10443 because, as a rootless container, it is not allowed to expose ports 80 and 443. So that my website can be accessed from outside, I use ufw as a firewall …

Total answers: 1

iptables allow host for isolated VLAN

iptables allow host for isolated VLAN I’m having a real trouble trying to do a "simple" tweak in my network. So: there are two sites, A and B and are connected via IPsec and there’s no problem in communication between them. each site has two VLANs, main and guest: main is 192.168.55.0/24 for A and …

Total answers: 1

What does !^ in csh alias do

What does !^ in csh alias do Note: my shell is csh An ex-co-worker gave me the following command to put in my .cshrc: alias bastion ‘ssh -L !^:<some_ip_address> <username>@<something.com>’ Note that what is in between <> are actual values. Now when I run this on my shell, I get the following error: Bad ! …

Total answers: 1

Unable to port forward, port 22 on big sur

Unable to port forward, port 22 on big sur I’ve looked around and forwarding port 22 so I can ssh to my home network externally should be easy, however I’m having issues, can’t seem to solve this from googling. I suspect I have missed something that needs to be done before port forwarding can be …

Total answers: 2

Strange mysqld process on my system wont let port 3306 be free

Strange mysqld process on my system wont let port 3306 be free I am using ubuntu Jammy release and on my system port no 3306 is unusable since I tried ssh based port forwarding on the same to a different machine. Also while running ps -aux it shows a strage process for mysqld with pid …

Total answers: 1

How to configure port forwarding with nftables for a Minecraft server on Raspberry Pi?

How to configure port forwarding with nftables for a Minecraft server on Raspberry Pi? Since I’m using a transparent proxy service, I use a raspberry pi as my home router. Its OS is plain Raspbian. Now I’m setting up a Minecraft server on 192.168.2.28, and am exposing it to WAN using NAT. Here’s my /etc/nftables.conf: …

Total answers: 1

Why does ssh port forwarding fail?

Why does ssh port forwarding fail? In this example: $ ssh -L 8001:192.168.122.4:80 the output give is the default help: usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface] [-b bind_address] [-c cipher_spec] [-D [bind_address:]port] [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11] [-i identity_file] [-J [user@]host[:port]] [-L address] [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port] …

Total answers: 1

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

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, I got no problem with accessing it via public …

Total answers: 2

Saving the dynamically allocated port of SSH tunnel

Saving the dynamically allocated port of SSH tunnel There is already a great question and answer here, but I have a different case. I create a tunnel with the following command: $ ssh -N -R 0:192.168.0.16:80 root@164.92.194.26 Allocated port 35007 for remote forward to 192.168.0.16:80 I am getting output about the allocated port, however, when …

Total answers: 1

Highest performance way to route traffic from IPv4 to IPv6 on Linux?

Highest performance way to route traffic from IPv4 to IPv6 on Linux? I have a use case where I want to forward certain IPv4 ports incoming into a machine, to to the same ports on another machine that uses IPv6. I assume I can do this with [auto]ssh, but wonder if this is high performance, …

Total answers: 1

How do I expose a port that an app is only allowing local connections to?

How do I expose a port that an app is only allowing local connections to? An app on linux-based "headless-box-1" is listening for HTTP connections on http://127.0.0.1:7860. Which restricts connections to self. But I wish it was listening for connections from any computer on the LAN. Is there a command I can run on the …

Total answers: 1

Port Forward in Empty Port. But 'cannot listen to port' And The port is filled

Port Forward in Empty Port. But 'cannot listen to port' And The port is filled Step 1. Checking Ports netstat -tnlpa (No info could be read for "-p": geteuid()=1000 but you should be root.) Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:6443 0.0.0.0:* …

Total answers: 1

forward remote tcp port to local port

forward remote tcp port to local port I have the following setup: The unit constantly tries to connect to the Remote Server on a specific known port. On the Remote Server, there is nothing but open TCP ports. I want to forward the Remote Server’s port to My Pc and open a TCP Server to …

Total answers: 1

SMTP IP forwarding to another machine

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 first. I have configured a second machine to be an …

Total answers: 1

SSH X11 forwarding with port forwarding

SSH X11 forwarding with port forwarding I have one question about SSH X11 forwarding and Port forwarding. I have: 2 computers running Ubuntu Desktop (not in the same location and local network) called Desktop1 with IP address IP1, the other is Desktop2, IP2. and 1 VPS (Ubuntu Server) with IP address IP_VPS. D1 <——> VPS …

Total answers: 1

Host PC fails to access Webmin which is installed on CentOS in VirtualBox

Host PC fails to access Webmin which is installed on CentOS in VirtualBox Webmin can be accessed over SSH after forwarding the port. Now I am trying to access Webmin’s control panel on my computer outside virtualbox but on the same computer, but it doesn’t load. I tried using the same port forwarding settings as …

Total answers: 1

opening a temporary tunnel

opening a temporary tunnel I have the following problem: I have a remote machine accessible via ssh which can serve some data through a web interface. I can use OpenSSH LocalForwarding to open a tunnel and start the remote server: ssh user@my.remote.server -L 127.0.0.1:3333:localhost:4000 ./start.sh then, on another terminal (or from GUI), I can start …

Total answers: 2

How does certbot bind port? Could not bind TCP port 80 because it is already in use by another process on

How does certbot bind port? Could not bind TCP port 80 because it is already in use by another process on I enabled both 80 and 443. sudo certbot certonly –standalone –agree-tos –no-eff-email –staple-ocsp –preferred-challenges http -m **@**.com -d mycomp.com Saving debug log to /var/log/letsencrypt/letsencrypt.log Requesting a certificate for mycomp.com – – – – – …

Total answers: 3

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

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:<port> and [::]:<port>. What do these 2 mean? In particular, if you see [::]:22 or 0.0.0.0:22 or …

Total answers: 1