Results 1 to 4 of 4
As the title says I am trying to forward inbound ( from the internet ) telnet ( port 23) connections to the WAN ip of 123.123.123.187 (eth0) through 192.168.1.1 (eth1) ...
- 04-17-2008 #1Just Joined!
- Join Date
- May 2007
- Posts
- 33
portforward port 23 telnet iptables help.
As the title says I am trying to forward inbound ( from the internet ) telnet ( port 23) connections to the WAN ip of 123.123.123.187 (eth0) through 192.168.1.1 (eth1) to to host server 192.168.1.202 on port 23.
Here is what I have ATM.
andCode:[root@gabriel sysconfig]# iptables -L Chain FORWARD (policy ACCEPT) target prot opt source destination ACCEPT tcp -- anywhere anywhere tcp spt:telnet dpt:telnet Chain INPUT (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination [root@gabriel sysconfig]#
..
but it does not work and I am hitting a brick wall.Code:[root@gabriel sysconfig]# iptables -L -t nat Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain POSTROUTING (policy ACCEPT) target prot opt source destination SNAT all -- 192.168.0.0/16 anywhere to:123.123.123.187 Chain PREROUTING (policy ACCEPT) target prot opt source destination DNAT tcp -- anywhere anywhere tcp dpt:telnet to:192.168.1.202:23 [root@gabriel sysconfig]#
The 192.168.1.202 server gladly accepts telnet requests from other hosts all day long so I know that is not the issue.
Please help. Thanks in advance.
- 04-17-2008 #2Just Joined!
- Join Date
- Apr 2008
- Location
- South Africa
- Posts
- 4
The quick and secure way to sort this out is to load OPENVPN on the server and desktop. Once they have establish a VPN connection they will be able to ftp or ssh to the server
- 04-17-2008 #3Just Joined!
- Join Date
- May 2007
- Posts
- 33
They won't be using any desktops I am routing between Unix systems that are actually already on a VPN but still run so very scary services and I need a layer inbetween to "watch" whats going on and to be able to disappear to certain hosts if I am scanned - botherd and so on.
- 04-21-2008 #4Just Joined!
- Join Date
- May 2007
- Posts
- 33
____(bump)


Reply With Quote
