Re: TCP/IP Port Relay

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



hmm, if I understood you correctly, then this should work just fine (on linux firewall):

/sbin/iptables -t nat -I PREROUTING -p tcp --dport 23 -j DNAT \
--to telnetserverip:port-number
/sbin/iptables -I FORWARD -i external_interface -o internal_interface \ -p tcp -d telnetserverip --dport portnumberontelnetserver -j ACCEPT

after a reboot or firewall service restart it's gone again.

-vahur

Frank M. Ramaekers wrote:
What is the best way to temporarily setup a port relay.  I'm trying to
diagnose a problem with Cisco's latest VPN client and need to determine
if the problem is port number related.

e.g.  VPN client---------23-(Linux box to relay port)-------xx-(Telnet
server)

(Keep in mind this is temporary and for debugging purposes)

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux