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
0answers
15 views

DLNA Port Forwarding using SSH

I want to forward remote DLNA-Server (Plex DLNA), which is running on an VPS per SSH Forwarding to my LAN. I experimented already with Local Port Forwarding to get Plex (Port 32400) from VPS working ...
0
votes
0answers
12 views

HAProxy as a reverse proxy for backend already ssl enabled and SSL terminator for a backend exposed in port 80

I have 4 servers: proxy_server, $BK_SERVER_001, $BK_SERVER_002 and $BK_SERVER_003 The "proxy_server" only has an HAProxy enabled service with this configuration: (please look at the rows marked ...
1
vote
0answers
16 views

How to chain two proxies, or: How to redirect network traffic from one process, to a local proxy

Here's the scenario: I have a proxy, that when Chrome is setup to map requests to, records the requests from Chrome + the responses from the real server. It records all of this in a special format, so ...
1
vote
1answer
58 views

Why ip_forward is disable by default? any side effect?

I need to forward an interface and I wonder why is disable by default? There is any security issue when I enable it? Is there any side effect when I enable it?
0
votes
0answers
11 views

Embedding in iframe web-application at a port on another application in the same server

I have an application at say port 5000 which can render embedded iframes. https://host-public-ip:5000/ I have a second application on say port 6000. I would like to embed this page in an iframe in ...
0
votes
0answers
26 views

ssh reverse tunnel with dynamic port for backup over ssh in DMZ

I'd like to do backup over ssh on a server in DMZ, the backup would be executed by a backup server which can ssh to DMZ. I was thinking to use reverse ssh port forwarding with dynamic port, ie. ssh -R ...
1
vote
0answers
35 views

Accessing nginx behind a Virtual Server looses port number

I have a Debian server running nginx with the following nginx configuration: server { listen 80 default_server; root /var/www/serviceserver1; index index.html index.htm; location /api ...
2
votes
4answers
62 views

Can not access ssh fowarding port

I have two servers, Server A has a public IP address(43.24.24.29), Server B has a private IP address(10.10.10.1). and Server A can connected to Server B by its public IP address(maybe there has some ...
0
votes
1answer
56 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
28 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
78 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
158 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
38 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
62 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
72 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
146 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
24 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
54 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
84 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
173 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
37 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
199 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
245 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
44 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
166 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
662 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
1k 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
362 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
248 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
148 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
45 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
114 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
30 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
63 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
42 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
151 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
45 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
48 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
168 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
238 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
521 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
61 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
24 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
14 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
112 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
57 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
184 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
67 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 ...