pstar
Aug 18 2005, 04:04 PM
I have no idea how this occured but my ip address is banned from my own server and I cannot access my site. Now, if i go to another location and do the following (below) I am able to get onto my machine, however, everyday my machine resets and I have the same problem. Can anyone tell me how to make sure my machine doesn't reset? Or How can I get my IP address unblocked?
[~]# /etc/init.d/iptables save
Saving firewall rules to /etc/sysconfig/iptables:
[~]# /etc/init.d/iptables stop
Flushing firewall rules:
Setting chains to policy ACCEPT: mangle filter
Unloading iptables modules:
[~]# chkconfig --levels 2345 iptables off
[~]# chkconfig --levels 2345 apf off
parisdns
Aug 18 2005, 04:47 PM
Check: allow_host.rules & deny_host.rules
DeadEye686
Aug 18 2005, 05:15 PM
Are you using APF?
pstar
Aug 18 2005, 06:47 PM
not sure what apf is? Please explain and thanks in advance.
All I know is that my IP is listed in my firewall. This all came along all of a sudden and I wasn't even aware that i had I had a running firewall.
eddy2099
Aug 18 2005, 07:30 PM
APF is a policy based IPtables Firewall uses quite extensively with Linux based system. Here is some write up about it.
http://www.rfxnetworks.com/apf.php
Where is your IP listed in the firewall definition ? It might be possible that it was listed in the wrong place and thus logging you out. Try removing it and see if it helps.
Alternatively, you can drop Support a ticket and ask them to disable the firewall properly so that you can get in and make the necessary changes.
pstar
Aug 18 2005, 08:30 PM
my ip is listed here:
[~]# iptables -L | grep 65.96.2.57
DROP all -- c-65-96-2-57.hsd1.ny.comcast.net anywhere
Then I have this...
[~]# chkconfig --list | egrep 'iptables|apf'
apf 0:off 1:off 2:off 3:on 4:on 5:on 6:off
iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
klaude
Aug 19 2005, 12:02 AM
Run `iptables --flush` to clear your ruleset. That should unblock you.
pstar
Aug 19 2005, 09:41 PM
ya but how do i get it to stop resetting each day. Everyday I get blocked out so flushing only goes so far.
knalb
Aug 24 2005, 01:29 AM
well, it looks like you are using ipf.. so edit /etc/apf/allow_hosts.rules and add your ip to it.. then restart apf
KTFCC
Aug 24 2005, 02:39 AM
or type if you have ssh access
CODE
apf -a your.server.i.p
apf -r
I was just tyring to say apf -a your.server.i.p like apf -a you.r.i.p so that it looks like a ip and it says you rest in peace. And that is just too confusing.
Ya tell me about it IP'S kill me. I know more IP's then I know phone numbers.
And i know more domain names then i know adresses ips and phone number combined.
pstar
Aug 24 2005, 06:40 PM
so type this via ssh
enter this: apf -a "77.999.99.99"
then this: apf -r
KTFCC
Aug 26 2005, 02:04 AM
well first you have to find out where apf is located.
Depending on how your path is setup. You may be able to launch apf anyware.
It is also depending if you have installed apf on your server if not. I would higly recomend it. But from the looks of your post yes you do have apf.
it is usualy stored in /etc/apf
so you would type
/etc/apf -a 123.123.123.123 subsituting the numbers with your server ip
then
/etc/apf -r
pstar
Aug 27 2005, 12:56 PM
i enter and recieved something like this....
-bash root@name /etc/apf
is a directory
/etc/apf -a 123.123.123.123
command not found
-r
BigD
Aug 27 2005, 07:32 PM
Try
CODE
/etc/apf/apf -a 123.123.123.123
pstar
Sep 27 2005, 09:53 AM
nothing seems to work. no matter what i do the machine resets each morning and my ip is blocked until i run command:
root@green [~]# /etc/init.d/iptables save
Saving firewall rules to /etc/sysconfig/iptables: [ OK ]
root@green [~]# /etc/init.d/iptables stop
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: mangle filter [ OK ]
Unloading iptables modules: [ OK ]
root@green [~]# chkconfig --levels 2345 iptables off
root@green [~]# chkconfig --levels 2345 apf off
I have to get someone to run this command for me each day.
I have no idea how this happened, but it's really annoying.
pstar
Sep 27 2005, 04:14 PM
anyone know the command to remove an ip from
/etc/apf/deny_hosts.rules
klaude
Sep 27 2005, 04:15 PM
Use a text editor. Vi for gurus or nano for newbies.
zunnie
Oct 9 2005, 10:00 AM
If you are able to login on SSH at your server, type:
iptables -I INPUT -s youriphere -j ACCEPT
to drop an IP:
iptables -I INPUT -s 111.222.333.444 -j DROP
or to drop ranges of IP:
iptables -I INPUT -s 111.222.333.0/255.255.255.0 -j DROP
ezpz
Oct 11 2005, 06:00 PM
sif nano for newbies

I love my nano
xenneo
Oct 12 2005, 10:32 PM
I still love nano

, guess im a noobie
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.