Questions tagged [port-forwarding]

port-forwarding on firewall or via SSH

Filter by
Sorted by
Tagged with
0 votes
2 answers
3k views

iptables redirected port 80 to 8080 - How to disallow direct access to port 8080?

I've routed all requests from port 80 to port 8080 for my Tomcat server using iptables. iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080 Now http://mydomain.com/ ...
Matt H's user avatar
  • 103
3 votes
1 answer
314 views

Port forwarding with 2 routers

I have a simple 2 router setup. I'm using the second router as a switch and for wireless. The first router is forwarding a few ports (80, 443, 1433) on to a computer with a reserved I.P. address 192....
user avatar
0 votes
1 answer
385 views

DLink dsl-g604t port forwarding inside network

I have a D-Link DSL-G604T. I have a dns that resolves a URL to its IP address. I port forward port 80 to a computer. All works fine - except when I try to access that URL inside the network, instead ...
user avatar
5 votes
1 answer
8k views

How to forward host ports of < 1024 to a VirtualBox NAT-connected machine?

The manual says: "Forwarding host ports < 1024 impossible: On Unix-based hosts (e.g. Linux, Solaris, Mac OS X) it is not possible to bind to ports below 1024 from applications that are not run by ...
Ivan's user avatar
  • 3,398
2 votes
1 answer
4k views

What ports are needed for a Windows XP client to acces a folder on a SAMBA server?

Wikipedia mentions only TCP port 445 (while as far as I can remember ports 137-139 used to be used actively by Windows file sharing). If I map the 445th TCP port on gateway host "A" to a 445th TCP ...
Ivan's user avatar
  • 3,398
4 votes
3 answers
7k views

How do I configure my router under another to avoid NAT issues?

I'm sorry if this has been answered before; I tried looking but couldn't find a solution. I'll try and explain as clearly as I can. I've recently purchased a Rogers Mobile Rocket Hub and it's ...
JakeTheSnake's user avatar
24 votes
4 answers
32k views

Undoing port forwarding

I need all requests to port 80 to be forwarded to 8020. I Googled it and I got: iptables -t nat -I PREROUTING --source 0/0 --destination 0/0 -p tcp --dport 80 -j REDIRECT --to-ports 8020 Now in the ...
raj's user avatar
  • 371
1 vote
1 answer
375 views

CentOS 5.4 - Lighttpd wrong port forwarding?

I've a VPS and although I am not a systems analyst by profession, I'm pretty used to configuring remote vps/dedicated boxes. Configuration: CentOS 5.4, lighttpd 1.4.22, mysql. There are 7 domains ...
user avatar
0 votes
2 answers
364 views

Apache local verses external (domain)

I have an Apache server running on Ubuntu server 10, using Passenger for Ruby on Rails. I have configured my site under the sites-enabled directory of Apache and can hit the server with an internal ...
Jessy Houle's user avatar
0 votes
3 answers
3k views

Connecting to mysql server remotely via dyndns.org

I have a mysql server which is accessed locally by several computers on the network through a static ip at 192.168.1.# . I need the mysql server to be accessed from our web servers so that I can run ...
user avatar
0 votes
1 answer
444 views

Port forwarding from non-default internet connection

I have two outgoing connections, pointing to different ISPs, on a gateway, in front of small-ish LAN. IPs addresses are as follows: ISP 1: network: 10.1.1.0/24 gateway ip: 10.1.1.1 client ip: 10.1....
mr.b's user avatar
  • 583
2 votes
3 answers
960 views

Running apache without port forwarding?

I am running a local server, and I want it to be accessible online, however, all ports appear to be closed, and I do not have access to set up port-forwarding. Is there anyway around this?
Nick's user avatar
  • 143
0 votes
1 answer
802 views

Network structure --> Server 2k8r2 <--> Livebox <--> Router <--> Other PCs [closed]

I have a Livebox connection to the Internet and I have set up my network as follows: - Livebox <--> Win2k8R2 Server - Livebox <--> Netgear N150 Router - Router <--> Other PCs ...
Yusuf's user avatar
  • 205
1 vote
3 answers
1k views

How to get local webserver to my external ip

Problem: I am trying to run a webserver from my computer. I see the request getting to the server, but am unable to see the page on the browser due to a "Errno 10054: An existing connection was ...
Derek Kwok's user avatar
1 vote
1 answer
1k views

Why won't my router forward ports correctly?

I have a Linksys RV042 dual-wan router (which directly responds to any traffic at *.*.*.*) and my FTP server is running Windows Server 2003 R2 SP2 and IIS. My server's local IP address is *.*.*.* ...
Giffyguy's user avatar
  • 365
1 vote
3 answers
3k views

If am using Remote Desktop to login to a remote machine, how does the data for this connection get back into my machine?

If am using Remote Desktop to login to a remote machine, how does the data for this connection get back into my machine if I don't open any ports on my router?
CJ7's user avatar
  • 653
8 votes
3 answers
30k views

Serial port forwarding over TCP/IP (linux server)

I am looking for a way to use a remote serial port on a linux machine over LAN. The machine is running ubuntu 10.04 and I have a arduino board connected to it, that I would like to be able to ...
Kamil Zadora's user avatar
3 votes
2 answers
2k views

forefront TMG 2010 ... UPnP Port mapping

I've tried googling the answer for a few days now, have come up with very little apart from http://retrohack.com/how-to-enable-xbox-live-behind-tmg-2010/ but can only publish ports on 1 ip ...
Rhys Evans's user avatar
8 votes
2 answers
6k views

How can ssh allowed to setup remote port forwarding but not execute commands?

How can an SSH command be setup to allow port forwarding but not execute commands. I know that the ssh login can use -N to stop commands executing, but can the ssh config file be setup to disallow it?...
vfclists's user avatar
  • 1,652
3 votes
2 answers
5k views

Ubuntu Server Port Forwarding the easy way?

I have an Ubuntu server (10.04) running nat and I understand how to forward ports using iptables which works fine and is only mildly painful. What is "the easy way" of doing this? Is there some nice ...
Arthur Ulfeldt's user avatar
7 votes
4 answers
25k views

How to configure traffic from a specific IP hardcoded to an IP to forward to another IP:PORT using iptables?

Unfortunately we have a client who has hardcoded a device to point at a specific IP and port. We'd like to redirect traffic from their IP to our load balancer which will send the HTTP POSTs to a pool ...
cclark's user avatar
  • 567
3 votes
3 answers
2k views

Windows SBS 2008 - how to diagnose port forwarding problems?

We have a Windows SBS 2008 machine. Several ports need to be forwarded from the router to the server (the machine hosts a FTP server, a Web server, and we need to be access it through Remote Desktop). ...
Alt_Doru's user avatar
0 votes
1 answer
215 views

IP-restricted port forwarding with iptables

For an example, I have two authorized client computers, 1.1.1.1 and 2.1.1.1. My server running iptables is 3.1.1.1 and my firewalled web server is 4.1.1.1. When one of the authorized client IPs ...
Tom's user avatar
  • 171
1 vote
0 answers
564 views

forward same port but for two different IPs (cisco)

I have a cisco running IOS 12.0(25) responding to two different IPs addresses: IP_A and IP_B. Behind this router I also have two different servers: server_A and server_B. What I want is to forward ...
Colin's user avatar
  • 125
1 vote
1 answer
199 views

iptables not writing rules

im running these two rules as root, but when doing a iptables -L it dosent show any rules, any one have an idea of what the problem can be? iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 --...
Darkmage's user avatar
  • 323
2 votes
2 answers
4k views

IP-dependent local port-forwarding on Linux

I have configured my server's sshd to listen on a non-standard port 42. However, at work I am behind a firewall/proxy, which only allow outgoing connections to ports 21, 22, 80 and 443. Consequently, ...
chronos's user avatar
  • 578
1 vote
2 answers
1k views

Port-forwarding on livebox to router

At home, I have two routers, one Livebox and a Netgear. The reason why I need the Livebox is that the phone line cannot be connected to the Netgear router. So I have the Livebox connected to the ...
Yusuf's user avatar
  • 205
1 vote
1 answer
7k views

Port forwarding with multiple IP's

I work at a company which uses a Fortigate 60 router, something I'm not really familiar with. Everything worked fine with it until a week ago when Comcast came in and replaced our modem. It seemed as ...
Jon's user avatar
  • 125
0 votes
4 answers
2k views

xinet vs iptables for port forwarding performance

I have a requirement to run a Java based web server on port 80. The options are: Web proxy (apache, nginx, haproxy etc.) xinet iptables setuid The baseline would be running the app using setuid but ...
user44384's user avatar
  • 129
0 votes
2 answers
3k views

Port forwarding using ASDM 6.0

Hey guys, I'm not too savvy with ASDM and it has been quite some time since I have done anything IOS so forgive me. I am trying to forward port 3389 from 'any' on 'outside' (1.1.1.1) to an internal ...
Jason's user avatar
  • 11
1 vote
2 answers
8k views

Port-forwarding HTTPS web server

I have port forwarded our front-facing IP to an internal HTTPS server. The browser does not connect. A wget command determines that the certificate is self-signed for the internal IP. Hence why the ...
user avatar
1 vote
1 answer
1k views

Simple options for port forwarding to a different port?

I have three network printers at our local office, all of which listen on port 9100. Non of them offer the option of changing the listening port. We have a single public static IP address, and access ...
Nick's user avatar
  • 4,656
1 vote
1 answer
2k views

Is the port number the same when connecting to git via the git+ssh protocol?

I was wondering when connecting to a git repository, does the git+ssh protocol use the same port number as just using the git protocol. For example: git://example.com/git/helloworld git+ssh://root@...
Tomek's user avatar
  • 215
2 votes
3 answers
13k views

Port forwarding for Rsync

Every port on my server is blocked except port 222 which is were ssh connects too. This server is pretty much a backup server, and I have my clients rsync to it. I do this by using ssh's port ...
Malfist's user avatar
  • 807
6 votes
1 answer
9k views

port to subdomain

I have installed Hudson using apt-get, and the Hudson server is available on example.com:8080. For example.com I use standard port *:80 and some virtual hosts set up this way: # /etc/apache2/sites-...
takeshin's user avatar
  • 1,481
1 vote
2 answers
2k views

Forward svn port

We have our svn server on a machine not accessible from the internet. But we need to be able to check out code from the internet over ssh. Given that we can do port forwarding on a machine accessible ...
ankimal's user avatar
  • 211
1 vote
1 answer
2k views

port forwarding with VirtualBox

I have a virtualbox VM running ubuntu. The Ubuntu guest is running a web server which listens on port 3000 (http://127.0.0.1:3000) The host machine is windows vista. I have configured port ...
Argh's user avatar
  • 547
2 votes
2 answers
1k views

Can I port forward to an established reverse ssh tunnel

I have three computers, A, B and C. A has initiated a reverse ssh tunnel to B. ssh -nTNx -p 443 -R 22222:localhost:22 [user]@[server] If I log in to B, I can use 'ssh -p 22222 localhost' and I get ...
user avatar
1 vote
3 answers
2k views

Is is possible to point a subdomain to a port address?

Is it possible to point a subdomain to a port address? For example sub.localhost -> localhost:82 How would I go about doing that in IIS 6? Thanks
user avatar
0 votes
1 answer
151 views

Windows port forwarding

This is the scenario: A Windows XP client A Linux Server The client is natted/firewalled/unreacheable from outside, the linux server is public. I need to allow the client, once upon some conditions,...
carlesso's user avatar
  • 213
6 votes
4 answers
8k views

ssh port forwarding freezes after 10 simultaneous connections

I am using port forwarding to utilize proxy server which is on remote machine. Remote machine hostname is remotemachine. Proxy is listening on 8118 port. I am translating this port to local port 5223....
Marko Kevac's user avatar
1 vote
2 answers
14k views

Port forwarding on Fortigate 50B

I have serious problems setting up port forwarding on a Fortigate 50B. The unit is basically running as factory default, the wan1 interface is connected to my fibre optic internet modem, and my lan ...
sindre j's user avatar
  • 199
3 votes
4 answers
3k views

How to browse to a webserver which is reachable through the SSH port only

I have a server at work which is behind a firewall (the company's firewall) so it is reachable only thrugh port 22 (SSH). I'm able to connect to the server with putty without problems. Also, that ...
GetFree's user avatar
  • 1,530
2 votes
3 answers
5k views

Hyper-V + RRAS NAT + Port Forwarding + RDP, can I get it all working together?

I am running a Windows 2008 R2 server with various services running natively and two virtualised servers running on Hyper-V. The hardware server, I'm going to call it REAL1, has one external NIC, to ...
user avatar
1 vote
2 answers
2k views

Zyxel P-320W: How to connect to my web server using public IP

My company's router is Zyxel P-320W and I have a public static IP. I registered a few domains name and point to this IP address. I already setup Virtual Hosts and configured port-forwarding to my ...
Tuan Anh Hoang-Vu's user avatar
0 votes
2 answers
5k views

IIS serving locally, but not remotely

There is a router between the modem and the server. In the admin panel, I use single-port forward Internal Port External Port IP 80 80 to 192.168.1.101 (Web ...
cinqoTimo's user avatar
  • 247
4 votes
1 answer
2k views

How do I connect to MySQL when it's setting behind 2 layers of ssh?

I have a MySQL server sitting behind a bastion server that I wish to connect to from my local machine. Ideally I want to port-forward the MySQL port (3316 in this case) to a local port on my machine. ...
David Corley's user avatar
3 votes
4 answers
4k views

ssh port forwarding / security risk

I want to access a web application running on a web server behind my office firewall from an external machine. We have a bastion host running sshd that is accessible from the Internet. I want to ...
user39832's user avatar
  • 185
2 votes
3 answers
696 views

Port Forwarding

Assuming port forwarding is done on router, can the router forward if the data is coming from local machine, rather than remote. For example: Sender targets ip like:88.251.xxx.xxx, port 8999. ...
user avatar
3 votes
3 answers
964 views

Single-Purpose SSH account, exclusively for Reverse Port Forwarding

On my Debian system, I'd like to create a user that is only allowed to do a Reverse Port Forward from their machine to my server, but I'm not sure how to create a limited user specifically for this ...
drfloob's user avatar
  • 143