0
votes
2answers
80 views

How to do the port forwarding from one ip to another ip in same network?

I would like do some NAT in iptables. So that, all the packets coming to 192.168.12.87 and port 80 will be forwarded to 192.168.12.77 port 80. How to do this with iptables? Or Any other ways to ...
1
vote
4answers
45 views

Bridge between two ports on the same network interface on a Linux server

I need to build a bridge between two network ports on a server so everything that arrives on port A goes to port B and everything that arrives on port B goes to port A. I have two devices (dA and dB) ...
1
vote
1answer
275 views

iptables port forwarding to vmware workstation guests on NAT vmnet [closed]

Try as I might, I can't get this to work now for 2 days. Your move, internet. I want iptables to transparently forward (localhost) 192.168.1.40:2222 to 192.168.2.22:22 and I don't want ...
0
votes
2answers
63 views

ip forwarding using iptables

I have two interface in my linux machine , one is configured for public ip 110.111.250.241 - eth0, another is for LAN 10.42.43.1. I have a client machine 10.42.43.174 with apache web server. I want ...
-1
votes
1answer
36 views

How to proxy to a web server on a node that can make outgoing connections but has no accessible IP, without root?

Not sure if this is the right StackExchange site to ask (I mainly frequent SO), but since you guys are server admin experts hopefully you'll find it relevant! Some context: I'm currently trying to ...
0
votes
0answers
61 views

Asign public ip addres to vmware virtual machine on linux host

We have server with linux installed on it (old debian 5.0). In this OS we have old VMWare server 2.0 installed (I know all is too old, but we don't have time to change it now) in which is installed ...
0
votes
1answer
74 views

SSH tunnel chaining

I've found the solution here. http://chrisjordan.ca/post/15052405906/chaining-ssh-tunnels. Why is this answer right? Are the connections between A, B, C, D, E encrypted? From what I understand only ...
0
votes
2answers
490 views

Forward traffic to local LAN IP while keeping the originator IP

I am trying to forward traffic from one server to another, while keeping the origin requestor IP. Therefor I cannot use SNAT or MASQUERADE. SERVER A: Public IP: 111.111.111.111 Private IP: 10.0.0.1 ...
1
vote
1answer
36 views

Proper postgres port forwarding on linux/ubuntu inside AWS VPC

At Amazon AWS we have VPC, where one node has public IP and others - private. Instance with public IP is something like balancer. On every node we have Ubuntu LTS. One of the private nodes is ...
2
votes
2answers
330 views

Unix Shell/SSH config to allow TCP port forwarding without showing a command prompt

I'm running a Debian Linux. I'd like to have a user account that is able to connect via SSH for TCP-forwarding only, without a command prompt. e.g the following would work (from a remote computer): ...
-1
votes
1answer
123 views

re-route requests on filtered smtp port 25 [closed]

My VPN filters port 25 (to prevent spam) but my ISP doesn't. The VPN takes over all traffic and changes the default gateway? How can I bypass the VPN to send mail? I want all outgoing traffic except ...
0
votes
1answer
107 views

Forwarding url requests to different ports

For development I run a few different servers (multiple instances of Tomcat and nodejs) to simulate some applications that work together. Each one runs on a different port and responds to different ...
-1
votes
1answer
119 views

How to check for GRE Tunnels [closed]

Is there a way to check for GRE Tunnels? I've heard spammers will use GRE tunnels to send mail from a central machine out of another and would like to check for possible GRE tunnels.
0
votes
1answer
71 views

Redirect an Outgoing port using IPTables to an aliased IP

I'm working on a network where I need to set up a specific port forward and am struggling to figure out if IPTables can do it. I have a server on an internal IP (192.168.XXX.1) routing through a ...
0
votes
1answer
68 views

Forwarding to firewalled web server over reverse SSH

I have a server running NGINX on local port 80 within my corporate NAT. From any remote box, I am able to setup a reverse SSH connection and connect to the firewalled box on port 22. Here's what I've ...
2
votes
2answers
524 views

IPTables port forwarding keep originating IP address

I'm hoping someone can help me with this configuration. I already have a working setup where a Linux box is acting as a router just doing port forwarding for public IP's. These are all public IP's ...
0
votes
2answers
132 views

iptables port forwarding A -> B -> A

I have a host machine(A) with lxc-container(B). A's local ip address is 10.0.3.1 and public ip, let's say 1.2.3.4. B's local ip address is 10.0.3.21. I need 1.2.3.4:7999 to be forwarded to ...
-1
votes
1answer
61 views

Name-Based Port Redirect

Desired Effect request server1.foobar.com:25565 result server1.foobar.com:25565 request server2.foobar.com:25565 result server1.foobar.com:25566 request server3.foobar.com:25565 result ...
0
votes
3answers
1k views

How to route external TCP port 80 into loopback (127.0.0.1) port 8080?

I have a test VDS box with real IP. If i start web server on physical interface port 80, it can be opened from another computer via it's ip address (and default port 80): python -m SimpleHTTPServer ...
1
vote
1answer
306 views

forward public port 81 to port 80 on local ip

i am new to serverfault, so please inform me of any bad behaviors :) i searched serverfault (and google) for an answer, but can't find the answer to my problem (i can find answers which are partially ...
2
votes
2answers
310 views

Redirect websockets to port?

So, I've got a WebSocket server in C++, that is a completely stand-alone entity - handles header parsing, receiving, sending, all of it on its own, listening directly to the port. Problem is, it ...
0
votes
1answer
237 views

What's the best way to forward traffic on a specific port to another machine?

The setup I have is this: [client01] <-A-> [server01] <-B-> [server02] client01 can access port 9300 on server01 (connection A). server01 can only access port 9300 on server02 ...
2
votes
2answers
6k views

iptables: How to forward packets with destination port 80 from eth0 to eth1?

I've http and https traffic coming from several machines to my eth0 on my Linux machine, but I want to forward these traffic to eth1 which has the access to the internet. And do the complimentary ...
-1
votes
1answer
286 views

Bind a fake service to a tcp port

A friend of mine gives me a (user) ssh access on an ec2-instance (ubuntu) that he's got. So, for reason that now I don't know, in the future I will have need of an open tcp port over the firewall to ...
1
vote
1answer
179 views

Access internal host from a subdomain of an external dns

This image contains the topology I want to make work. I have a linux server that is used for hosting websites and also routing for our internal network. How can I access the internal server that ...
1
vote
1answer
216 views

virtualbox port forwarding - firewall config

i have a ubuntu host system with virtualbox running a windows server. In Virtualbox i have configured the network with a NAT interface and port forwarding for the RDP deamon running inside the vm. ...
2
votes
2answers
297 views

Forwarding MySQL connection with iptables and differents network interfaces

I have a PC with Ubuntu as a router. It has a 3G connection with a public IP to the Internet, and there is a private wireless subnet. So it has two active interfaces: ppp0: public IP (WAN) wlan0: ...
3
votes
2answers
550 views

Workarounds for probable TIME_WAIT issue preventing reestablishing broken SSH tunnels?

While not intending to cross-post, after sending this question to the OpenSSH list on SecurityFocus, I noticed that the list is rather low traffic (the previous post was approximately 5 months prior). ...
2
votes
1answer
718 views

My CentOS 5.7 server can't access the internet

I have a CentOS 5.7 server setup in my office. I have recently moved to a new router (Linksys E3200) and I don't seem to be able to access the web at all through it (git, yum etc.). All the other ...
2
votes
2answers
565 views

Redirect traffic between two ports with iptables

My goal is to run a webserver on port 3000 and make it available to my network over port 80. The best answer I found so far is this nice one liner. iptables -t nat -A PREROUTING -p tcp --dport 80 -j ...
1
vote
2answers
96 views

Lighttpd based server issues crop up when port forwarding

I have four host computers running lighttpd webservers. they are sitting behind a hspa modem, which each occupying a http port between [81 - 84]. 80 is taken by the modem itself. The port forwarding ...
0
votes
3answers
184 views

Forward (all 80) to Debian server then have Debian delegate where?

I have a router that forwards all port 80 to a Debian web server, but I want to add another server to that bunch. How could I get debian to say forward anyone trying to access git.domain.com to ...
1
vote
1answer
1k views

iptables redirect range and exclude

i have this iptables and working. iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 0:20 -j REDIRECT --to-port 8080 #bypass SSH iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 23:442 -j ...
4
votes
3answers
673 views

Forward SSH through SSH tunnel

My situation : Me(localhost) -> Server A(ip:100.100.100.100) =>(server B(ip:192.168.25.100),server....) i'm able to SSH into server since it has a true ip if i then want to connect to server b, i ...
0
votes
3answers
3k views

iptables forward one outside port to a different port on localhost

I have a setup where I have a CentOS server that is acting as an internet gateway. This machine performs the NAT between our main switch and our internet connection. I'm also hosting a virtual ...
0
votes
1answer
508 views

Forward non HTTP traffic on port 80

I'm creating an Android application that uses MQTT protocol to send real time messages, however the local firewall is strict and blocks most ports so the android app can not connect. (Server is ...
1
vote
1answer
94 views

iptables and DNAT. quick question

So I have a machine with a single interface. It has 2 ip addresses (eth0: 192.168.2.3, eth0:1 192.168.2.4). I'd like to take any traffic coming in on 192.168.2.4 and NAT it to an external ip ...
1
vote
3answers
330 views

How to redirect a port on linux

I want to redirect all mail traffic (localhost port 25) to another server to send mail. Should I use BIND, iptables or some other tool? How would I do this?
1
vote
2answers
2k views

Any Alternative to Rinetd Port-to-IP Forwarding? [closed]

I need to redirect port 443 to external IP. Rinetd works well but it has a bug where it generates huge log files to the point which cripples your server. See bug report here ...
0
votes
2answers
431 views

Redirection with IPTABLES while hiding the original port

So, I have my Glassfish server is listening on port 8080. However, I want to have my requests at port 80 while hiding 8080, so that people think my server really runs at 80. How can I do it with ...
1
vote
5answers
3k views

How to make ALL ports accessible on CentOS 5.6?

I've set up a CentOS 5.6 development server running as a virtual machine under Virtual PC 2007, in order to have a play with Node.js. Everything is up and running, but I can't seem to access port ...
0
votes
0answers
253 views

Fowarding port in iptables to internal server

I'm running cPanel/WHM with ConfigServer Firewall (csf). I want to forward port 8080 on my webserver to an internal server with an IP of lets say 10.1.1.1 thats running a webserver on port 80. How ...
1
vote
1answer
215 views

Port forwarding / SSH tunneling - explain this to a beginner

I am attempting to forward traffic from port RP on remote host RH to port LP on my local box LH. I have tried running ssh -R (RP):localhost:(LP) -N user@(LH) from the remote server. This ...
0
votes
1answer
721 views

NAT KVM Guest and Route All Guest Traffic to Host VPNC Connection

I know this is ridiculous, but our admin said he would beat me to death if I tried bridging mode and refuses to enable port security on our Cisco switches. Is there any way to get NAT traffic from ...
0
votes
1answer
330 views

Open port iptables with ip alias

Added alias ip, creating eth0:0. network restarted, ngix is listened on alias ip: server { listen alias.ip:80; From server machine I can access www using # lynx http://alias.ip/ How to ...
0
votes
2answers
1k views

ubuntu forward port to another machine

I'm migrating servers, and I'd like to forward port 80 on my existing machine to port 80 on the new machine while DNS switches over. I'm running Ubuntu 10.04 server and trying to follow the guide at ...
1
vote
1answer
179 views

Port forwarding to webserver - still redirects to local IP address

I'm extremely new at unix/linux so please bear that in mind in your answer. I am running an apache server on a Fedora box. I have a static IP and have set up port forwarding through my router/modem - ...
1
vote
3answers
80 views

Remote servers picking up incorrect IP, DSL router connected

I have a server connected to a DSL router. If I go to whatismyip.com, I get an IP address, but I can't access the server from a remote location using that IP address. Instead I have to use the IP of ...
2
votes
2answers
805 views

iptables forward port from ext network to the int

I have 2 ip addresses on iface eth0: eth0 Link encap:Ethernet HWaddr 00:19:99:a4:14:08 inet addr:85.25.152.115 Bcast:85.25.152.255 Mask:255.255.255.0 inet6 addr: ...
8
votes
8answers
11k views

Port forwarding on Linux without iptables?

I have a Linux VPS (virtuozzo) server and I need to setup port forwarding, but my hosting provider does not allow iptables-nat kernel modules so iptables -t nat - is not working. I'm looking for ...