Results 1 to 8 of 8
-
13th Jan 2012, 09:03 AM #1OPMember
block all ports but let rapidleech working
I want to block all my VPS Ports cept
www/ssh/ftp
Code:sudo iptables -A INPUT -p tcp --dport www -j ACCEPT sudo iptables -A INPUT -p tcp --dport ssh -j ACCEPT sudo iptables -A INPUT -p tcp --dport ftp -j ACCEPT sudo iptables -A INPUT -j DROP
the above code worked but they also blocked all incoming traffice so that rapidleech cant download from filehost/other web sever
anyone could help
regardsvincentfkc Reviewed by vincentfkc on . block all ports but let rapidleech working I want to block all my VPS Ports cept www/ssh/ftp sudo iptables -A INPUT -p tcp --dport www -j ACCEPT sudo iptables -A INPUT -p tcp --dport ssh -j ACCEPT sudo iptables -A INPUT -p tcp --dport ftp -j ACCEPT sudo iptables -A INPUT -j DROP Rating: 5
-
13th Jan 2012, 09:14 AM #2
Try this , it should work
Code:sudo iptables -A INPUT -p tcp --dport www -j ACCEPT sudo iptables -A OUTPUT -p tcp --sport www -j ACCEPT sudo iptables -A INPUT -p tcp --dport ssh -j ACCEPT sudo iptables -A OUTPUT -p tcp --sport ssh -j ACCEPT sudo iptables -A INPUT -p tcp --dport ftp -j ACCEPT sudo iptables -A OUTPUT -p tcp --sport ftp -j ACCEPT sudo iptables -A INPUT -j DROP
-
13th Jan 2012, 02:29 PM #3OPMember
thanx
but not working , same error
-
13th Jan 2012, 02:54 PM #4
Did you restarted iptables ?
Service restart iptable
-
13th Jan 2012, 11:00 PM #5OPMember
I am using ubuntu, there is no service iptables
But I am sure I restart (the whole server)
-
13th Jan 2012, 11:02 PM #6
Check this out > https://help.ubuntu.com/community/IptablesHowTo , hope it can help in anyway .
-
13th Jan 2012, 11:43 PM #7OPMember
I think
sudo iptables -A OUTPUT -p tcp --sport www -j ACCEPT
shoule be
sudo iptables -A OUTPUT -p tcp --dport www -j ACCEPT
-
14th Jan 2012, 06:16 AM #8OPMember
not work
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
How to block ports on Linux VPS.
By digimon in forum Web Development AreaReplies: 4Last Post: 11th May 2012, 09:41 AM -
My rapidleech not working
By ViPeRR in forum Webmaster DiscussionReplies: 6Last Post: 24th Mar 2011, 08:24 PM -
[Other] Rapidleech @ $2.99 | Hf Working
By m3th3lesh in forum ArchiveReplies: 64Last Post: 23rd Jan 2011, 10:16 AM -
[Other] RapidLeech Hosting - Quality 100 Mbps Ports - Instant Account or Free Month
By WebKobra in forum ArchiveReplies: 5Last Post: 18th Oct 2010, 08:22 AM -
Rapidleech HF Working
By faizulhaque in forum General DiscussionReplies: 12Last Post: 18th Aug 2010, 02:39 PM
themaCreator - create posts from...
Version 3.45 released. Open older version (or...