Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 23rd February 2008, 22:15
mmistroni mmistroni is offline
Member
 
Join Date: Jan 2008
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default configuring iptables from remote machine

hi all,
i own a VPS, and i'd like to configure iptables as by checking logs i see many intrusion (all failed fortunately) into my server
i have read quickly docs, they suggest to start to configure it from the machine itself, but unfortunately, having a VPS, i can only access my server via ssh..

anyone could help me out or point me to a good tutorial?

thanks and regards
marco
Reply With Quote
Sponsored Links
  #2  
Old 23rd February 2008, 22:45
mmistroni mmistroni is offline
Member
 
Join Date: Jan 2008
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello,
i browse the net to find some articles...
i tried something.... as i noticed that most of attempted intrusion to my VPS come from address starting with 61.143, i have tried to do block those addresses.. will this configuration work?

ACCEPT tcp -- anywhere anywhere tcp dpt:www
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
DROP tcp -- 61.143.0.0 anywhere

will this block all intrusion from that address?

problem i have is that i connect remotely from a machine which does not have a static ip.... therefore i cannot do sort of 'block everything except from access from my machine' ...

any suggestions appreciated

thanks and regards
marco
Reply With Quote
  #3  
Old 23rd February 2008, 22:53
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,034
Thanks: 265
Thanked 151 Times in 131 Posts
 
Default

Just make sure that you know exactly what you are doing, or you might lock yourself out!

When I did add my IPtables, I added a cronjob to reboot the server at a set time without loading the IPtables (this so if I did lock myself out I got access again).

When I was done with adding the IPtables, and all was still okay, I removed the cronjob.
__________________
Never execute code written on a Friday or a Monday.
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Iptables gateway with one lan adapter tsmr Installation/Configuration 1 7th August 2008 12:02
Match IP with MAC using iptables for squid block cooljai Server Operation 0 30th August 2007 18:30
About iptables rules satimis Technical 0 24th August 2007 17:32
The Perfect Xen 3.0 Setup For Debian | IPTABLES rocket30 HOWTO-Related Questions 7 25th July 2006 14:18
configuring IPTABLES firewall adityavpratap HOWTO-Related Questions 9 27th May 2006 21:42


All times are GMT +2. The time now is 21:47.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.