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.
Thread Tools Display Modes
Old 23rd February 2008, 23:15
mmistroni mmistroni is offline
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
Reply With Quote
Sponsored Links
Old 23rd February 2008, 23:45
mmistroni mmistroni is offline
Join Date: Jan 2008
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts

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 -- 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
Reply With Quote
Old 23rd February 2008, 23:53
edge edge is offline
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,044
Thanks: 269
Thanked 154 Times in 133 Posts

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


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 13:02
Match IP with MAC using iptables for squid block cooljai Server Operation 0 30th August 2007 19:30
About iptables rules satimis Technical 0 24th August 2007 18:32
The Perfect Xen 3.0 Setup For Debian | IPTABLES rocket30 HOWTO-Related Questions 7 25th July 2006 15:18
configuring IPTABLES firewall adityavpratap HOWTO-Related Questions 9 27th May 2006 22:42

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

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