Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 8 of 8

This is a discussion on help please, can not access to VPS in the VPS & Dedicated forum
Hi all Sorry I am a Linux newbie, I tried secure my VPS today but have some proplems . I want disable any telnet to ...

  1. #1
    JPC Member
    Join Date
    Apr 2008
    Posts
    26

    help please, can not access to VPS

    Hi all
    Sorry I am a Linux newbie, I tried secure my VPS today but have some proplems .

    I want disable any telnet to my server except port 80, so I put command
    iptables -P INPUT DROP

    I think I will put the command after
    iptables -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT

    but when put command iptables -P INPUT DROP, and now I only can access to VPS via Plesk, no ssh, no http for my sites, all sites down

    so how can I solve this proplem
    thanks for your help

  2. #2
    Loyal Client thisisit3's Avatar
    Join Date
    Mar 2007
    Posts
    642
    heh that command blocks ALL ip traffic to the server (chain INPUT), in other words you kinda disabled your server.

    telnet is a remote access tool that uses TCP port 23, so if you want to block telnet then you only need to run:

    Code:
    iptables -I INPUT -p tcp -m tcp --dport 23 -j DROP
    You obviously don't know what you are doing, so i suggest you take extra care with iptables. Read the iptables documentation and use google.

  3. #3
    JPC Member
    Join Date
    Apr 2008
    Posts
    26
    what's should I do now to enable access to the server again ?
    I hope can solve the issue without reinstall the server
    thanks

  4. #4
    JPC Dream Team
    Join Date
    May 2007
    Location
    JPC
    Posts
    635
    Please open a support ticket and provide your VPS details. We will login into your VPS via node and flush the iptables rules for you to enable SSH access.
    Jawad A.
    JaguarPC
    Site Links:
    Knowledge Base | Network Status

  5. #5
    JPC Member
    Join Date
    Apr 2008
    Posts
    26
    ok, thanks

  6. #6
    Loyal Client thisisit3's Avatar
    Join Date
    Mar 2007
    Posts
    642
    You can just reset iptables with the following command:

    Code:
    service iptables restart
    Just make sure that the file /etc/sysconfig/iptables-config has the option IPTABLES_SAVE_ON_RESTART set to "no".

  7. #7
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    Could he do that from the Virtuozzo panel? If not, there's no way back in for him to execute that command, is there? (I.e. no way other than support coming in via the node itself?)
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  8. #8
    Loyal Client thisisit3's Avatar
    Join Date
    Mar 2007
    Posts
    642
    Yes, its possible from the VZ panel, but not easy to do since the interface is messed up and VZ presents a custom view of the VZ_INPUT/VZ_FORWARD/VZ_etc chains, instead of the real thing. I do believe that in advanced mode its possible to modify the normal chains.

Bookmarks

Posting Permissions

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