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.

learn more… | top users | synonyms

1
vote
2answers
70 views

Have SSH on port 80 or 443 while webserver (nginx) is running on these ports

I have a remote Linux (Debian) machine which I'd like to access from a very restricted network. In fact the only two open ports are port 80 (for HTTP) and 443 (HTTPS). On this machine I have nginx ...
-1
votes
0answers
14 views

X11 forwarding through a server where X11Forwarding is disabled

How can I push an X11 forwarding session over an SSH tunnel when the server doesn’t allow that? I guess I should use some port forwarding or edit ProxyCommand in /etc/ssh/ssh_config, but none of them ...
0
votes
1answer
40 views

Lightwight MTA which could listen on localhost port

I have multiple Ubuntu servers with Java applications running on it. One of the application's functions is to sent an email. Now we using exim4 as the MTA. I would like to replace exim with something ...
0
votes
0answers
14 views

How to troubleshoot: “X11 connection uses different authentication protocol.”

I start an ssh session with localbox % ssh -vvv -Y remotebox 2>debug_ssh_log ...which succeeds. Then I try to run xlogo on remotebox, but the command fails immediately, and the following lines ...
1
vote
0answers
87 views

Port Forward For OpenVpn

I have setup a OpenVPN server on CentOS 6, and it starts ok when i /etc/init.d/openvpn start it shows me Starting openvpn: [ OK ] so far so good, but ...
1
vote
1answer
23 views

Forward every port depending on domain

A friend and I are doing some little webhosting for us. Currently all the pages are running on one Server via Apache2's virtual hosts. Know we wanna make single servers for each site with ssh-access, ...
1
vote
1answer
50 views

Can I forward all traffic on a port to a complete different IP address?

Here's my situation. I own a VPS that provides 3 public IPs / public interfaces. let's call these IP address V1 (on eth1), V2(on eth2) and V3 (on eth3) At home, I have a router. The home WAN IP is H. ...
0
votes
0answers
37 views

Port forwarding Configuration for Webcam

I have a webcam which is streaming via mjpg-streamer on http://localhoste:8121/?action=stream. Now, I'm wishing to access the camera from outside. I'm using an DDNS system and now I have a domain name ...
0
votes
1answer
38 views

SSH Port Forwarding [duplicate]

I'm trying to set up an ssh port forwarding from my router to my linux host. I'm using the dynamic dns service from http://www.dnsexit.com. I'm using their subdomain and I have already installed the ...
0
votes
1answer
54 views

Specifying a random monitoring port with autossh

I have many reverse ssh tunnels and because monitoring ports can't be reused, I am trying to find a free random port for monitoring. Meanwhile I specified -M 0 and the forwards work great and in ...
0
votes
1answer
125 views

How does a cisco device know if I'm connecting via telnet or ssh?

I'm experiencing strange behavior with a Cisco UC520 router. When I am directly connected to the router and telnet to it using this: telnet 192.168.1.1 23 Then I get a successful login prompt: ...
2
votes
0answers
45 views

SSH fork kills connection

I am using a linux script which has the task of forwarding control of the system to remote support. In this script one of the commands is a ssh port forward command that will forward the port of the ...
0
votes
0answers
10 views

Bind address forwarding in Lighty

I have a question not sure is it possible or not, if possible then how ? I have a Lighty running on a Linux system and is bind to localhost only on port 80. I have another web site written in Node ...
1
vote
0answers
28 views

What is the point of the second route lookup after OUTPUT?

According to the packet path diagram, and its description: Table 6-2. Source local host (our own machine) [...] Routing decision, since the previous mangle and nat changes may have ...
2
votes
1answer
251 views

Forwarding packets from loopback interface with policy-based routing

I have the following iptables rule: iptables -t mangle -A PREROUTING -p udp -m udp --dport 10000 -j MARK --set-xmark 0x4/0xffffffff which sets fwmark 4 on all udp packets with destination port ...
1
vote
0answers
106 views

How to forward Remote-Desktop Port across interfaces using ufw?

Machine A has two network interfaces: Network eth0: 10.10.20.0/24 Network wlan0: 192.168.1.145/24 Machine A has 192.168.1.145 as Default Gateway, and also a route to pass 172.16.0.0/16 to ...
4
votes
4answers
269 views

List ports a process PID is listening on (preferably using iproute2 tools)?

I'm looking to list all ports a PID is currently listening on. How would you recommend I get this kind of data about a process? NOTE: I was surprised I could not easily find an answer to this!
1
vote
1answer
55 views

ssh settings `permitopen=“localhost:4000”` does not limit remote port forwarding [duplicate]

I have a special user on my server, let's call it foo. I use it only for port forwarding. The user's .ssh/authorized_keys2 is set up to prevent login and to open only a specific port: ...
1
vote
0answers
31 views

Forcing broswers to use a different host and port when viewing websites over ssh-tunnels

I've setup an ssh tunnel to a network that has a website I need to view. However, when requesting the page my browsers sends the host localhost and url http://localhost:1234 in the HTTP headers. Is ...
0
votes
0answers
71 views

Cannot connect to Solaris Server when Oracle GoldenGate process uses the port

I'm trying to test the Oracle goldengate to replicate data between two databases on the same server. So I installed two databases and two goldengate homes in the same machine. The goldengate ...
0
votes
3answers
438 views

Redirect domains to different ports on same machine

I used the following command to redirect 80 to 3000. All the requests that come, from any domain, are redirected to 3000: sudo iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-port ...
2
votes
0answers
147 views

SSH Failing to fork with sshpass

I've a problem with port forwarding command using sshpass. Problem is that it's working on one server and does not work on another. Both are Debian 7 x64 boxes. sshpass -p password ssh -f -D ...
1
vote
1answer
55 views

Unable to access an http sevice forwarded using ssh

I forwarded a port from a remote server (which has Tomcat running on it) to a local port on my machine. Say, if the remote server address is http://myremoteserver.com:8080, I forwarded the port to ...
2
votes
1answer
170 views

In iptables, what is the difference between targets DNAT and REDIRECT?

More specifically, is -A PREROUTING -i $INT -p $PROTO --dport $PORT -j REDIRECT --to-ports $NEWPORT equivalent to one or both of these? -A PREROUTING -i $INT -p $PROTO --dport $PORT -j DNAT ...
2
votes
2answers
211 views

Allow multiple remote connections to an ssh Dynamic forwarded port

Let us assume I have three machines A - Server to which I am sshing to B - Client from which I am sshing C - Another Client in B's subnet Now, I set up dynamic port forwarding for port 1235 by ...
1
vote
1answer
142 views

forwarding not working in iptables from 8006 to 443

My dedicated server was bridged to vmbr0 and it has 2 Ethernet cards eth0 and eth1 its bridged. I have enabled forwarding with net.ipv4.ip_forward=1. I want to redirect the Port 8006 to 443. Now ...
4
votes
5answers
556 views

Securely tunnel port through intermediate host

I'm looking to route a port for VNC back to my house here. I have to jump over a single host to then hop to my actual work machine. sittinghere will be my local home machine hopper will by the ...
1
vote
0answers
37 views

Forward port 80 to another port [duplicate]

I am running a webserver on a RedHat 6 box that I don't have root access to. Because I need ports 80 and 443, I require root access to start and stop the server. I am not allowed root access, but I ...
5
votes
1answer
146 views

Why does ssh -g say that address is already in use?

I setup an SSH connection with port forwarding that allows remote hosts to connect to the local forwarded ports like this: ssh -g -L 5115:localhost:5115 <server> The connection works fine ...
1
vote
3answers
558 views

what does this ssh command mean?

Its an answer I got from questioning about port forwarding but I'm not sure what it means.. $ ssh lab_desktop -L 2200:lab_server:22 -vvv my wild guess: first get connect to lab_desktop and then ...
0
votes
2answers
40 views

how to track down an internal port redirection?

I'm trying to understand something with X11 and one fact that I discovered is that the X display stuff seems to be sent through a port called "localhost:11" So I tried the netstat -n | grep ':11' ...
2
votes
2answers
152 views

Temporary redirect ports

I need a temporary redirection of some ports to another machine. I've tried: iptables -t nat -A PREROUTING -p tcp --dport 4321 -j DNAT --to-destination 192.168.121.4:80 But shorewall blocks all ...
0
votes
0answers
166 views

Port forwarding only works for first packet sent

I'm trying to configure port forwarding (80 and 443) on my new router. The router is a Xiaomi Mi Wi-fi, that establishes a PPPOE session with a VDSL2 modem/router (BBox2). The Xiaomi router runs a ...
0
votes
0answers
12 views

SSH: connect through intermediary server in just one step (through forwarded port) [duplicate]

Related question: initiate ssh connection from server to client I have intermediary server with public IP (let it be SERVER), and I need to establish connection between two computers (A and B) ...
1
vote
1answer
175 views

Putty use local internet proxy for remote machine

Is there a way you can use your local internet proxy for remote computer with tunneling via SSH. My machine has access to internet via proxy. But the remote computer does not. I don't have admin ...
6
votes
2answers
259 views

Determine dynamically allocated port for OpenSSH RemoteForward

Question (TL;DR) When assigning ports dynamically for remote forwarding (a.k.a. -R option), how can a script on the remote machine (for instance sourced from .bashrc) determine which ports were ...
2
votes
1answer
388 views

SSH Setup - How will the router know my computer's ip?

I'm very new to the networking side of the house and am trying to set up SSH on my new Ubuntu machine. I have my DD-WRT router working with DDNS now and can log in to the router page -- but I'm not ...
0
votes
1answer
103 views

How to access my webserver from the host machine? [duplicate]

My host OS is Gentoo, guest OS - Fedora. I have a web server on Fedora on port 8686 and it works perfectly on guest OS, but I can't access it on my host OS. I tried to use bridged network (then I got ...
4
votes
1answer
2k views

How to check if port forwarding is enabled?

I have just set up a DNS server for my own network, and many guides online suggest to make sure that port forwarding on port 53 is not enabled. The thing that is not clear to me is this: should I ...
2
votes
2answers
3k views

Redirect requests to my external IP/port to an 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 ...
1
vote
2answers
2k views

Route add gw: how to

I'm in a network with IP 10.0.1.X (pc A). There's another sub-network: 10.0.3.0 I can ping pc B connected to this network: ping 10.0.3.X ---> OK Now, B is connected also in wifi to a network ...
0
votes
0answers
38 views

Possibility to use app in LAN and via Internet

I use web based (https encapsulated) app in my home network and via Internet. The app has dedicated Linux desktop client (I use Mageia ver4 Linux for laptop). Of course server address I have connected ...
-1
votes
1answer
374 views

Double port forwarding - SSH

NOTE: I'm not explaining why I want to do this. But here is the requirement. There are 4 hosts. Host A, Host B, Host C, Host D Host A is running some application which can be accessed at port 8001 ...
4
votes
2answers
7k views

iptables redirect outside requests to 127.0.0.1

I have a service running on 127.0.0.1 with port 2222. I need to forward all requests to 192.168.2.2:2222 (outside IP) only from subnet 192.168.1.0/24 to 127.0.0.1:2222. I'm trying to use this, but ...
1
vote
1answer
81 views

How can I interact with my home router via a device on the local network using ssh? [duplicate]

I have a raspberry pi plugged into my router at home, running raspbian. Before I left for work I: Configured the router to forward ports 80 and 22 to the pi Configured dyndns This all works, and I ...
1
vote
1answer
373 views

iptables Port Forwarding — no service with the port

I have setup a network as in the image below: Firewall (FW) running CentOS 6 has two physical interfaces with subinterfaces: eth0:2 — 10.100.1.78/25 eth0:3 — 10.100.1.79/25 eth3 — 192.168.0.21/24 ...
1
vote
1answer
151 views

Redirection to services in NAT or Bridged Network only with one subdomain

I have one subdomain (dyndns). xyz.dyndns.com (f.e.) Here my question begins: I have a server for virtualisation. On the server I have multiple VMs where different web-services are available ...
3
votes
1answer
131 views

sshfs LocalForward without config file

I'm trying to add portforwarding to my sshfs-mount-scripts: sshfs tim@devserver1:/ /home/tim/mnt/devserver1/ -o SSHOPT=LocalForward 127.0.0.5:3306 127.0.0.1:3306 So far I've failed using the ...
1
vote
0answers
213 views

Portforwarding: router nat vs iptables [closed]

I would like to host some services on my pc and make them available from internet. (I'm aware of the security implications, it's more like a test for now). I don't have experience with iptables but I ...
1
vote
2answers
1k views

How to forward port by (sub)domain name?

I have this setup: a (Host) FreeBSD 9.2 host server running VirtualBox with another (Guest) FreeBSD guest server. I have set up port forwarding on the Host to the Guest like this: VBoxManage ...