Dedicated Servers
Managed Dedicated Servers
Semi-Dedicated Hosting
Cheap Dedicated Servers
Hyper-V VPS Hosting
Hyper-V Virtual Private Servers
Linux VPS Hosting
VPS Hosting with Root Access
Windows VPS Hosting
Windows VPS Web Hosting
Reseller Hosting
Reseller Hosting India
cPanel Shared Hosting
Linux Shared Web Hosting
Windows Hosting
Windows Shared Web Hosting
Web Hosting Blog
Web Hosting Blog India
Hosting Knowledgebase
Web Hosting Knowledgebase




  #1 (permalink)  
Old 06-26-2005, 10:35 PM
host.co.in's Avatar
System Administrator
 
Join Date: Jan 2005
Location: Nashik,India
Posts: 24
Send a message via ICQ to host.co.in Send a message via AIM to host.co.in Send a message via MSN to host.co.in Send a message via Yahoo to host.co.in
Default How to block ports and IP's ?

I want to block a port 3987 and IP 211.147.147.147 on the server. Please give me possible solutions for this as there may be a firewall on the server like apf for doing this and there may be not. What would you do if there is apf and what would you do if apf is not there on the server ?
Reply With Quote
  #2 (permalink)  
Old 06-28-2005, 01:08 PM
Junior Member
 
Join Date: May 2005
Posts: 14
Default

If apf is installed on the server then if the port is not listed in IG_TCP_CPORTS then it is blocked. and to block a particular IP, command is apf -d IP ( apf -d 211.147.147.147)
If apf is not installed on the server then you can use iptables for the same purpose.
To block port,
iptables -A INPUT -p tcp -s port -j REJECT
(iptables -A INPUT -p tcp -s 3987 -j REJECT)

To block IP
iptables -A INPUT -p tcp -s IP -j REJECT
(iptables -A INPUT -p tcp -s 211.147.147.147 -j REJECT)
Reply With Quote
  #3 (permalink)  
Old 06-29-2005, 01:02 PM
Member
 
Join Date: May 2005
Posts: 44
Cool

You can block the ip by "route add I.P reject" command
Reply With Quote
Reply

Bookmarks
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT. The time now is 03:53 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0