Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
30 views

Host refused connection when using ftp

I need to connect to my server using FTP, but connection refuses. I have been using SFTP that is working just fine (both locally and externally). Using linux debian. I am able to login with ftp ...
0
votes
1answer
21 views

How can I make a service running in Guest VM in VirtualBox accessible outside the VM

I use Oracle VirtualBox and have a service that runs on a guest VM. If I'm under guest OS and open the service URL in Firefox the app works as expected: https://localhost:8443 I was told that I can ...
0
votes
0answers
21 views

Using socat to access deluge daemon in a different namespace

I'm using namespaced-openvpn to ensure that my torrent traffic in deluge is always behind a VPN. A modified script from this blog post helped to connect the VPN namespace to the real network: ip ...
0
votes
0answers
17 views

VSFTPD refuses to list directory when PASV is enabled

I'm configuring VSFTPD on Ubuntu 18.04 and have followed all the guidelines. It's working OK for plain FTP (insecure), however as soon as I enable SSL/TLS and Passive mode, it connects, but I am ...
0
votes
0answers
25 views

IPTables and Port Forwarding on an OpenVPNAS Server

I have a new OpenVPNas server running on CentOS 7 (Not married to CentOS 7). That I working on replacing an expensive Commercial VPN that has a Public Static IP. Being that the OpenVPNas server is ...
2
votes
0answers
36 views

Kernel modules for iptables ftp forward

I have two ARM devices connected to each other with TCP/IP, one of them is connected to my network, on the other one is FTP server. I'm trying to set up port forwarding to ftp using conntrack and ...
0
votes
1answer
62 views

Which concept does ssh “proxy jump” belong to: proxy, port forwarding or something else?

Which concept does ssh "proxy jump" belong to: proxy, port forwarding or something else? By ssh "proxy jump", I mean either ssh -J user@vmhost user@vmguest or in ~/.ssh/config: Host vmhost ...
0
votes
1answer
35 views

Setup IP and port forwarding in AWS

I have a web server in AWS EC2 for example with http://11.22.33.44 listening to port 80. I would like to do something like port forwarding such as if I'm browsing the website IP from my home network ...
0
votes
0answers
20 views

Local port forwarding not working [duplicate]

I'm learning what port forwarding is and how to do it. I run this command: ssh -L 6900:https://wwww.google.com:80 localhost but when I try to reach localhost:6900, I receive: What am I doing wrong?
-1
votes
1answer
18 views

reusing same port in a tcp application under different namespaces on linux VM

i have a linux VM with 2 interfaces, eth0 has mgmt IP and eth1 has configuration as below ip netns exec eng51 ifconfig eth1.51 Link encap:Ethernet HWaddr 52:54:00:bd:68:c3 inet addr:51.51....
0
votes
0answers
43 views

Bind SSH client to two different host addresses

I have this port forwarding solution for testing purposes. There is a distant server named box and a local machine named tower, on two separate networks. box is accessible through the internet. On ...
1
vote
0answers
59 views

Do VPN and SSH reverse port forwarding achieve the same thing?

https://en.wikipedia.org/wiki/Virtual_private_network A virtual private network (VPN) extends a private network across a public network, and enables users to send and receive data across shared or ...
0
votes
0answers
78 views

Port forwarding in Linux for UDP doesn't work

I'm trying to apply a port forward rule to forward UDP traffic from my AP on port 53 to a custom DNS server listening to 9053. I tried various calls. None of them worked. I've tried this in Kali. ...
0
votes
0answers
28 views

port forwarding using mptcp

I installed mptcp on two systems mptcp installation I followed this site to install mptcp and its working perfectly I check this site also mptcp check both systems will work perfectly. I want to ...
4
votes
1answer
106 views

How to setup simple port forwarding on macOS with pf? “Rules must be in order: options, normalization, queueing, translation, filtering”

I am trying to pass traffic from Mac A port 5800 to Mac B on port 5900 using pf. This is the intended path of travel: Client to port 5800 → Router (Yes, port forwarding is setup here) → Mac with PF →...
0
votes
1answer
99 views

Why hostfwd option of QEMU need root access in some times and doesn't need some times

This command of QEMU doesn't need root access : qemu-system-x86_64 -m 3072 -smp 2 -hda Debian9.qcow2 -device e1000,netdev=net0 -netdev user,id=net0,hostfwd=tcp::5555-:22,hostfwd=tcp::9000-:9000 When ...
0
votes
0answers
25 views

Port forwarding over OpenVpn

I wanted to host few gameservers on my home network to play with my buddies, the thing is having a public ip is like begging to get DDoS'ed, so what ive done is i have set up a OpenVPN server on a ...
0
votes
1answer
62 views

Port forward from external postgresql to localhost

I have several databases hosted outside the application server, ex: DB instances: 192.168.178.21:5432 192.168.178.22:5432 192.168.178.23:5432 app-server: 192.168.178.11 now I want to forward the ...
0
votes
1answer
249 views

Forward all traffic to a socks5 proxy port

I followed this answer: Redirect all non-local traffic to a socks proxy root@xxx:~# cat /proc/sys/net/ipv4/ip_forward 1 root@xxx:~# netstat -tapln | grep :4545 | grep LISTEN tcp 0 0 127....
1
vote
1answer
309 views

“Not running dhcpcd because /etc/network/interfaces defines some interfaces that will use a DHCP client or static address”

Deployment: VM -- (eth0)RPI(wlan0) -- Router -- ISP ^ ^ ^ ^ DHCP Static DHCP GW NOTE: RPI hostname: gateway • The goal was to make VMs accessible from the outside ...
0
votes
0answers
136 views

socat - UNIX-LISTEN and TCP-LISTEN in one command

Is it possible, to open a tcp port and a socket with one process/command? socat UNIX-LISTEN:/var/run/mysqld/mysqld.sock,fork,user=mysql,group=mysql,mode=777 TCP:123.123.123.1:3306 combined with: ...
0
votes
3answers
137 views

How is SOCKS protocol used in SSH dynamic port forwarding? [duplicate]

When creating connection(s) between application client and application server via SSH dynamic port forwarding by ssh -D, how is SOCKS protocol used? Is SOCKS used as a protocol for communication ...
-1
votes
1answer
99 views

Is SSH X forwarding an example of remote port forwarding?

Is SSH X forwarding an example of remote port forwarding? I feel like so. How can SSH X forwarding be done in terms of SSH remote port forwarding command? Thanks.
-2
votes
1answer
43 views

In port forwarding, is the ultimate destination decided solely by the intermediary entity? [closed]

In port forwarding, is the ultimate destination to connect to solely decided by the intermediary entity which provides port forwarding, not by an application client? Although the page mentions ...
0
votes
2answers
103 views

How to keep a SSH session for dynamic forwarding alive and terminate it at will? [closed]

I found someone keeps a SSH session alive by ssh -f -D $port $SSH_HOST " if [ -f ~/.tunnel ]; then rm ~/.tunnel; fi; while [ ! -f ~/.tunnel ]; do echo > /dev/null; ...
1
vote
1answer
28 views

Does working in different protocols cause difference in the destinations of local/remote and dynamic forwarding?

Dynamic port forwarding using SSH knows where a request wants to go and sends it there, which is said to be due to using the SOCKS protocol. Local and remote port forwarding using SSH forward a ...
0
votes
1answer
50 views

How does SSH used for dynamic port forwarding know where a request wants to go?

Dynamic port forwarding using SSH uses SOCKS protocol. How does SSH know where a request wants to go? For example if the request is a HTTP request, SSH doesn't understand HTTP, so where does it find ...
0
votes
1answer
40 views

How to choose the target forwarding address?

SSH the Definite Guide says Suppose you want to forward a connection from your local machine to remote.host.net. Both of the following commands work: $ ssh -L2001:localhost:143 remote.host.net $ ...
2
votes
1answer
75 views

How is “Forwarding can be also done through Unix sockets” done?

https://zaiste.net/ssh_port_forwarding/#remote-port-forwarding Remote port forwarding is created with -R parameter. ssh -R source_port:forward_to_host:destination_port via_host This command ...
2
votes
1answer
32 views

What is the forward_to_host in remote port forwarding?

https://zaiste.net/ssh_port_forwarding/#remote-port-forwarding Remote port forwarding is created with -R parameter. ssh -R source_port:forward_to_host:destination_port via_host This command ...
-1
votes
1answer
45 views

What are the relations and differences between port forwarding and proxy?

Is an entity which performs port forwarding considered as a proxy? If not, what is it? A proxy is transparent to users of the clients of its proxied server: a user sends a request to a destination ...
-3
votes
1answer
146 views

Why is SSH protocol not connecting to destination successfully?

In firefox, I can connect to google.com:80. But after $ ssh -L 9000:google.com:80 testme@localhost in firefox, I connect to http://localhost:9000/, an then That’s an error. The ...
4
votes
1answer
120 views

Forward abstract unix socket over SSH?

I've discovered that OpenSSH is capable of forwarding UNIX sockets like this: ssh -R /var/run/program.sock:/var/run/program.sock My question is whether this extends to abstract unix sockets too. I'...
1
vote
2answers
207 views

Creating a ssh config for a reverse tunnel + local forward

I'm trying to create a ~/.ssh/config entry for the following scenario: I have a linux box in a private network somewhere, a vps server which is accessible from anywhere and my local macbook. The ...
0
votes
0answers
39 views

Forwarding ports from OpenVPN server on VPS to OpenVPN client

I have running OpenVPN on my VPS which have static ip address. OpenVPN works as expected but I am not able to forward ports to OpenVPN client. I have tried few iptables rules but no luck. These are ...
0
votes
0answers
16 views

Forwarding port from VPS to local with OpenVPN

My ISP has me double-NAT'ed me so I can't open any ports. I want to forward all connections via port 9292 through VPS's IP to OpenVPN so I can listen port 9292 from my local network when I connected ...
0
votes
0answers
12 views

OpenVPN Gateway with Killswitch and Prerouting Ports

My Prerouting in UFW Doesnt work. I´m using an VPN Connection via tun0. Internet Connections via tun0 as a gateway works but not the Port Forwarding. im on debian Strech 9 UFW Before Rules. Only ...
1
vote
1answer
61 views

ssh port forward when connected with ssh in script

when I am connected to a device over SSH, I know how to forward local ports; first enter ssh menu with [ENTER} ~C, then: -L 4455:ip:80 This will make localhost:4455 on my local machine go to port ...
0
votes
1answer
30 views

One port is listening with an * and the other is listening with 127.0.0.1 and only the first is accepting remote connections

Please see the attached picture below, and then I will explain: So, I have Solr running which uses port 8983. And as you can see in the screen shot, it's listed as "TCP *:8983 (LISTEN)". And, it's ...
1
vote
1answer
47 views

iptables blocking local traffic

My local machine IP: 192.168.0.35 What I did: Answer that i tried here!! sudo iptables -t nat -A OUTPUT -p tcp --dport 80 -j DNAT --to-destination 192.168.0.35:80 The error: Now I can not access ...
0
votes
1answer
67 views

How to check if port is open and unused?

I am currently at my uni and connected to uni's network. I set up a server on my PC but noone can connect from outside uni network because ports are blocked, however I have access to one of uni's ...
0
votes
0answers
59 views

SSH connection failure: processing of forwarded request fails on known_host key

When I attempt a SSH connection between client C and server S (both on the same LAN) the client looks up the server's key in the client user's known_hosts file. In the usual case for connection ...
0
votes
0answers
87 views

SSH forwarded through modem recently started failing: update

Server host Ubuntu 18.04: Openssh-server/bionic-updates,bionic-security,now 1:7.6p1-4ubuntu0.1 amd64 Modem: Arris Xb6 Tested with clients: Ubuntu 18.10: openssh-client/cosmic,now 1:7.7p1-4 amd64 ...
0
votes
1answer
73 views

Locally forward tcp port bidirectional

I wonder how it is possible to locally forward a tcp port, bidirectional, i. e. all packets leaving the local machine on port 25 (this port of course is actually dynamically assigned) should be ...
0
votes
1answer
20 views

Nested Port Forward

Is there a built in software way to essentially port forward like the following? example.com/81/* -> example.com:81/* example.com/82/* -> example.com:82/* ... Alternatively maybe for ...
0
votes
1answer
103 views

SSH connection times out when trying to remotely connect to my personal computer from laptop on another network

I have a desktop computer and a laptop. Both run Debian 9.5. Both have openssh installed. On my desktop, when I run ip a, I see this as part of the output: enp0s31f6: <BROADCAST,MULTICAST,UP,...
0
votes
0answers
20 views

difference between port forwarding and a virtual network bridge

I have two network interfaces eth0 Link encap:Ethernet HWaddr 00:04:35:00:01:21 inet addr:172.24.176.221 Bcast:172.24.255.255 Mask:255.255.0.0 inet6 addr: fe80::204:35ff:...
0
votes
2answers
641 views

SSH Remote port forwarding with multiple ports

For those who worked with ssh port forwarding or for those who have an idea, I managed to create a remote tunnel from my PC to a remote machine(a camera that does not have a public address) through a ...
1
vote
0answers
78 views

How to setup qemu networking for web app server on guest?

I am trying to setup a simple test system emulated under qemu. Problem is I seem unable to connect to web applications using the standard command line because applications usually listen to a well ...
0
votes
0answers
158 views

tcp reverse proxy to map container's port to host port

I am running a windows machine as host. Installed 'docker for windows' and have a docker container running centos. I have a process in the container that connects to 127.0.0.1:7515. I want this ...