Tagged Questions

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

0
votes
0answers
17 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
18 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
12 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
68 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
21 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
8 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
17 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
115 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
46 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
134 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
25 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
28 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
42 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
156 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
98 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
48 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
99 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
150 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
112 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 ...
3
votes
5answers
204 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
36 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
106 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
484 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
38 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
118 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
134 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
166 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
215 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
359 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
88 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
1k 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
2k 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 ...
0
votes
2answers
878 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
34 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
186 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 ...
3
votes
2answers
4k 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
77 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 ...
0
votes
1answer
329 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
127 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
122 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
193 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 ...
1
vote
0answers
80 views

setting up a local VoIP to use as a Wifi Headset

I had this idea of using Wi-fi in a vehicle to connect my cell to the car call handler.Just as it works with bluetooth nowadays. Just to demonstrate that such a thing is possible , i had three Linux ...
3
votes
1answer
243 views

listen to a conversation using port forwarding

I have been able to make a phone calls using the SIP client Pjsua from one Linux computer to another one. In case you have not heard of this user agent, explaining it's functionality is quite easy. It ...
3
votes
2answers
533 views

SSH access from inside and outside a LAN using the same terminal command

I have a Raspberry Pi (RPi) and I am making remote connections to it using ssh. I have managed to set up ssh correctly such that I can access the RPi both from a local area network and from the ...
1
vote
1answer
131 views

How to forward one port to another (on the same machine)?

A machine (M) is behind a NAT. Port X is forwarded through, and available to the internet. My application wants to connect to port Y. How to I configure M to forward incoming data on port X to port ...
2
votes
2answers
803 views

SSH connection refused from inside my LAN

I'm on Fedora 19 and I have a problem with ssh. Ssh is up and running and I can connect when I enter my lan ip. But when I try my server name (blahblah.no-ip.org) I get a connection refused. No-ip is ...
0
votes
0answers
140 views

irc connection timeout problem

I am using tcpredir to connect to freenode server via port 6665 for some firewall difficulties: server:~# redir --lport=6665 --cport=6665 --caddr=irc.freenode.net and recently i faced a problem, i ...
3
votes
2answers
352 views

SSH through router to internal file server

This is a real beginner question, I know. But I really don't seem to be able to wrap my head around the terminology to get what I want working. And since I want to do this on a router that 40-50 ...