How to redirect a TCP port on the _same_ host?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hello,

I'm using ipchains/ipmasqadm (kernel 2.2) to do port redirection and it
works great from the "master" system (i.e. the one with two Ethernet
interfaces) to the "slaves" (i.e. the ones inside the private network).
Something like this:

Master:  IP1: 1.2.3.4, IP2: 10.0.0.1
Slave 1: IP: 10.0.0.2
Slave 2: IP: 10.0.0.3

Rules on Master:
	IP: 1.2.3.4:80   -> REDIR: 10.0.0.2:80
	IP: 1.2.3.4:5000 -> REDIR: 10.0.0.3:5000
	(...)

The problem is that now I need to redirect ports inside the master,
something like:

	IP: 1.2.3.4:7000 -> REDIR: 1.2.3.4:22
	IP: 1.2.3.4:8000 -> REDIR: 1.2.3.4:22
	(...)

, but that doesn't work (at least not with ipmasqadm rules).

Could someone here help me get this local redirection to work?? Any hints?

TIA!

Later,
Ivan

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux