Find the answer to your Linux question:
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) ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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.
    Code:
    [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]#
    and
    ..
    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]#
    but it does not work and I am hitting a brick wall.
    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.

  2. #2
    Just 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

  3. #3
    Just 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.

  4. #4
    Just Joined!
    Join Date
    May 2007
    Posts
    33
    ____(bump)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •