Questions tagged [port-forwarding]

Port forwarding is a process consisting in the translation of a host:port couple into another host2:port2 couple, both submitted to the same network mask.

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

Forward traffic port to specific network interface using iptables

I have total of 10 apps using different ports (5121-5131) and 5 network interfaces (lets call them eth0 - eth4). I need to route all traffic through the eth0 interface (metric should do the trick) ...
0
votes
1answer
19 views

Forwarding incoming ports to another private IP on my existing setup, IPTABLES

On my Debian 8 gateway: I want to forward incoming port 9000 to 192.168.4.10:3389 and incoming 9001 port to 192.168.4.11:3389. DHCP - WAN - eth0 -----> eth2 - LAN - 192.168.4.1 I am using rules.v4 ...
0
votes
1answer
27 views

Forward SSH traffic from public IP to local IP

I need to find a way to forward ssh traffic from a WAN ip address to a specific host IP address on a local network. The set up is as follows: WAN ---------|Firewall| ----SSH Machine EXTERNAL | ...
0
votes
2answers
19 views

How to configure NGINX to Redirect Traffic to Different Ports if Interface has Multiple IP Addresses

An Ubuntu 20.04 machine with a single network interface is given 3 IP addresses. We want to run several instances of a program that listens to a specific port and have one instance listening to each ...
-1
votes
1answer
23 views

iptables: forward requests to different local port with masquerading

I run a web app on port 80 that for some APIs requires whitelisting of source IPs. Because anyone from within my /19 network should be able to use these APIs and because this web app doesn't support ...
0
votes
0answers
16 views

tcpserver won't connect over a port forward

I port forwarded a computer on port 1000: When I run tcpserver 0 1000 echo test on the computer and run nc lostxor.com 1000 on another computer, netcat hangs. If I run nc -l 1000 on the first one and ...
2
votes
1answer
68 views

Is it possible to make a port unavailable for binding in Linux?

I'm working on a port forwarding problem. Is it possible to make a port unavailable for binding in Linux? I have an application that will dynamically listen on port 5000-10000, however, I don't want ...
0
votes
0answers
33 views

How to set up apache server for public domain on linux?

I am running Arch Linux on my computer. tl;dr I have portforwarded apache and the router on port 80 and disabled all firewalls on my computer and router. Apache has started and started with no visible ...
1
vote
1answer
50 views

Accepting port on linux/Can only access port using local, timeout on ip

I have opened the port 25565 on my rounter (aka the minecraft server port). I am already hosting a website on this server: togtja@togtja_server:/$ sudo iptables -nL | grep 80 ACCEPT tcp -- 0.0.0....
0
votes
4answers
57 views

Port Forwarding to enable ssh remote access is not working

I was exploring ssh and was trying to log into my pc from my phone, i'm on mac by the way. i activated the ssh server on my mac, and i logged into it with my phone in the same LAN, by entering my mac ...
2
votes
2answers
54 views

How to safely allow particular remote IP access to particular servers on private network?

I have HPC that I want people to use it remotely without giving them access to other computers in the private network. Other computers are operating on network. I am using port forwarding. sudo ...
3
votes
1answer
1k views

ssh connection “client_loop: send disconnect: Broken pipe” or “Connection reset by <IP> port 22”

I have been using ssh to access remote servers for many months, but recently I haven't been able to establish a reliable connection. Sometimes I cannot login and get the message "Connection reset ...
0
votes
0answers
19 views

Forwarding traffic over VPN

Hi I am very new to linux environment and VPN technologies. I have a Kali VM which is connected to a remote domain joined Windows host in my organization over VPN. For VPN connection, I am using ...
0
votes
0answers
28 views

Debian iptables

For quite some time I was trying to forward ports or/and connect between 2 devices inside VPN and I couldn't figure it out. I have VPS setup on Debian 9.0 x64 with ExternalIP. I created VPN based on ...
0
votes
0answers
21 views

Remote access to home web server while openVPN is on?

My setup: Router: 192.168.1.1 with port forwarding to 192.168.1.3 (external 8080 because my ISP blocks 80, internal 80.) Pi4: 192.168.1.3 with Apache running to process occasional requests from my ...
0
votes
1answer
34 views

How to route incoming and outgoing traffic through vpn host with iptables

I am trying to route traffic coming into a network through a raspberry pi and to/from my personal computer which is running a game server and is on a different network. The raspberry pi is hosting ...
0
votes
0answers
62 views

How to forward port 80 and 443 on pfSense to a (internal) nginx webserver?

Yesterday we did a "big bang" firewall switch in our company. Our new firewall is a pfSense server. Lets say our external ip is 84.1.1.1, pfSense is 192.168.1.1 and our web server ip is 192....
0
votes
1answer
38 views

How can I Host a Website on a Local Server with Port 80 Redirect and a Dynamic IP?

I am on Three Mobile UK which only issue a dynamic IP and apparently blocked all http ports including 80 so I got a domain stephenogidan.ddns.net from No-IP to fix this issue. So far, I haven't been ...
1
vote
0answers
37 views

Receive data on a udp port and forward the same on a tcp port

I'm not sure whether this is even possible, but I want to receive some data over UDP port (say 14550) and forward it to a newly opened TCP port (say 50000). I have tried socat as of now but no success:...
0
votes
0answers
12 views

Port forwarding with android

I know smartphones can do like routers, It is possible to forward port on android with hotspot and access it from internet, like the way we using router can we use smartphone instead????? If yes How??
1
vote
1answer
21 views

Containerised Postfix treating External e-mails as Internal e-mails

I have an iRedMail Mail Server running in an LXD container. Unfortunately, all e-mail is currently treated as internal e-mail, effectively making it an openrelay. Container host VPS, with its own ...
0
votes
1answer
33 views

Permanently close a port in Bash

I am trying to kill a process (in CentOS) that is listening to a port that was set up with port forwarding. I have tried all the answers here: https://stackoverflow.com/questions/9346211/how-to-kill-a-...
0
votes
1answer
223 views

Configuring iptables to port forward ssh connection to a server

I have a network topology that looks like so: Internet--------------------Firewall-------------------------Server 0.0.0.0/0-----172.8.45.140 & 192.168.1.1-----192.168.1.2 I need to configure ...
0
votes
1answer
79 views

Recording the dynamically allocated port number with SSH remote port forwarding

In the SSH documentation, for remote port forwarding, it says: If the port argument is ‘0’, the listen port will be dynamically allocated on the server and reported to the client at run time. When ...
2
votes
1answer
45 views

How to decipher ss -t command output?

I am struggling with Node.js app deployment because of some CORS and port issues. ss-t output ESTAB 0 0 ...
0
votes
0answers
48 views

Why my system can only do port forwarding when I ssh to it?

I use debian 10 with kernel 4.19 and nftables as port forwarding tool. The rule is like table ip nat { chain prerouting { type nat hook prerouting priority -100; policy accept; ip ...
1
vote
1answer
27 views

How to forbid port-forwarding for a password protected SSH user?

Brief: I would like to restrict port-forwarding from an SSH user identified by password. Explanation: In the following explanation of how to install a git server: https://git-scm.com/book/en/v2/...
0
votes
1answer
37 views

Port redirect with firewalld

I'm trying to redirect a traffic that goes to a certain port - to another port. I've read how to do it with iptables, but my system is using firewalld. Here what I have for iptables: iptables -t nat ...
0
votes
0answers
103 views

How do I configure Apache to use UPnP?

In home networks based on modern routers supporting UPnP, torrent clients just work: they ask the UPnP gateway to open a port for them when needed. Yet, every guide I have seen about setting up a web ...
0
votes
0answers
49 views

How do I forward from an IP address on my *local* network to a remote machine via SSH?

I feel like this should be much easier than it's turning out to be - but basically: On my local home network, I have an IP camera at IP address 192.168.0.106:80 and 192.168.0.106:554 (camera ...
0
votes
0answers
12 views

Forward traffic Server A to Server B and show ip origin B to A

i have a question... Mi main server with this ip -> 166.xx.xx.xx Mi proxy server with this ip -> 66.xx.xx.xx When players connecting via main server i can see the ip from them, but when they ...
0
votes
0answers
23 views

How can I show the actual port mappings for configured but not connected ssh forwarding ports?

I'm trying to find a way to verify after configuration that an SSH local port forwarding rule is present and correct. I use the following to create the forwarding entry: > OPTS="-o ...
0
votes
1answer
30 views

How to setup port forwarding between two public servers (ufw, debian)

I have SERVER1 and SERVER2. Both Debian9, both with ufw. I have net.ipv4.ip_forward=1 enabled on both servers. SERVER1 have Apache2 running on ports 80 and 443. I need to forward ports 80 and 443 ...
-2
votes
1answer
192 views

Port forwarding not working correctly

I am trying to my web server available from outside my net. I have set a static IP for my PC: And I have also set port forwarding: It works fine if I use my local IP address (192.168.0.240) from a ...
0
votes
1answer
40 views

Add Forward during SSH Session (Dynamically)

We know that we can specify Local or Dynamic Port Forwarding through ssh by specifying command-line parameters: ssh -D #### \ # For Dynamic Forwards -L ####:host:#### # For Local Forwards ...
0
votes
0answers
30 views

How to forward path along with port

I'm willing to bet I have a fundamental misunderstanding here, but I am trying to do something akin to port-forwarding AND url-forwarding without using something like nginx. I have a remote linux ...
0
votes
0answers
22 views

My Ubuntu Servers static IP is not registering in my connected devices tab to port forward

I have recently installed ubuntu server 18.04 on my raspberry pi 3 and I am trying to use it as a dedicated minecraft server. I have installed everything and it works fine as a local server but I want ...
0
votes
0answers
18 views

Help with multi-step port forwarding to device behind firewall

I've included an image in this post because I think it's the clearest way to indicate my intention. Essentially, I am trying to create an ssh tunnel indicated in black such that connections from ...
0
votes
3answers
170 views

How to do port forwarding with two interfaces using iptables?

I have a debian box with two interfaces wan and lan(192.168.0.1). On lan:80 I have a site that must be accessed from local network. Also I need this site to be accessed from wan:777. This is my ...
0
votes
0answers
29 views

Connection Refused when ssh forwarding multiple ports over multiple hops

I am currently ssh-ing from my laptop to a supercomputer login node, and then ssh-ing again from there into an interactive job running on the supercomputer's compute nodes. I am forwarding a single ...
0
votes
1answer
38 views

Port forwarding command

I have a Linux machine which has 2 interfaces: for one of them (ip 1.1.1.1) I can access via ssh. For the other one (ip 2.2.2.2) I can't. Some web application running on the second interface with port ...
0
votes
0answers
1k views

Tunnel fails with “channel 3: open failed: connect failed: Connection refused” and ORA-12537 or ORA-12514

Here is what I did: 1/ Establish connection from my client PC to jump with tunnel in putty with: L2234 ('Source port') localhost:2235 ('Destination') 2/ Once logged onto this jump server, in ...
1
vote
0answers
57 views

SSH tunnel for VNC through IP forwarding?

I'm trying to setup a VNC connection from my local desktop to another machine. I'm having some difficulties with how to setup the port forwarding I need to make it work. The machine setup is like ...
1
vote
1answer
42 views

Port forwarding through different interfaces

I have a remote server which has a publically accessible IP Address. On this server’s ports elements are hosted to the web on various ports. So on another PC connected to the same network I can go to [...
0
votes
2answers
101 views

Forward port on localhost to some remote host:port

Suppose there is some server running on remotehost.some.where:4444. I have a software that insists to connect to localhost:5555. I can forward this with ssh as ssh -L 5555:remotehost.some.where:4444 ...
0
votes
0answers
70 views

iptables port forwarding for my game server

I have an 2 dedicated server and I want port forwarding (game - Minecraft) but I can't forward porting to destination server. TCP PORT : 25565 UDP PORTS : 19132,19133,25565 I already have tried ...
0
votes
0answers
38 views

Can I use an ephemeral port number for a permanent service?

For example configure my router at home to forward all connections to a certain port > 32768 to a local SSH server. Would this maybe block outgoing connections because a client randomly selected ...
0
votes
0answers
154 views

Enable port-forwarding (SSH): ssh: connect to host X.X.X.X port 22: Connection refused

I want to make a remote connection using ssh to my pc when I'm not home. Let's say X.X.X.X written in title is my global ip router. I've done the following steps: Install openssh-server on my home ...
0
votes
0answers
116 views

UFW IPTables Port Forwarding to OpenVPN client

Let's say: Server with public ip 68.100.100.100 (has the OpenVPN server) Backend with a private ip tun0 10.8.0.6 (OpenVPN client connected to the Server' OpenVPN server) Client with ip 170.170.170....
1
vote
0answers
369 views

channel 84: open failed: administratively prohibited: open failed

I'm trying to ssh via port forwarding. This is my ssh config file: HOST A HostName B user C DynamicForward 0.0.0.0:1081 When I run "ssh A" I get: channel 5: open failed: ...

1
2 3 4 5
9