Tag: apf
Uninstall APF
by dino on Jan.24, 2010, under Basics, Command Line, DirectAdmin, cPanel
Sometimes we may require to remove APF from the server. Here is a guide which shows how to remove APF completely from the server.
Stop the firewall first
service apf stop
/bin/rm -rfv /etc/apf
Remove the cron for APF
/bin/rm -fv /etc/cron.daily/fw
/bin/rm -fv /etc/init.d/apf
lastly disable at startup
chkconfig apf off
This should remove APF completely from the server as we removed the APF daemon, cron and files.
APF installation error on VPS : unable to load iptables module (ip_tables), aborting.
by dino on Sep.29, 2008, under Virtuozzo
While installing APF on your VPS you get the following error :
apf(28442): {glob} status log not found, created
apf(28463): {glob} flushing & zeroing chain policies
apf(28463): {glob} firewall offline
apf(28500): {glob} activating firewall
apf(28551): {glob} unable to load iptables module (ip_tables), aborting.
apf(28500): {glob} firewall initalized
apf(28500): {glob} !!DEVELOPMENT MODE ENABLED!! – firewall will flush every 5 minutes.
You need to configure the APF for your VPS.
nano -w /etc/apf/conf.apf
modify
to
Restart APF
apf -r
Now you will be able to complete apf installation fine
cPanel required ports list
by dino on Jul.05, 2008, under Uncategorized
Cpanel required ports list
| Port | Service | Protocol | Direction | Notes |
| 20 | ftp | tcp | inbound/outbound | |
| 21 | ftp | tcp,udp | inbound/outbound | |
| 22 | ssh | tcp | inbound | |
| 25 | smtp | tcp | inbound/outbound | |
| 26 | smtp | tcp | inbound/outbound | |
| 37 | rdate | tcp | outbound | |
| 43 | whos | tcp | outbound | |
| 53 | DNS | tcp/udp | inbound/outbound | Inbound only needed if you run your own DNS server |
| 80 | http | tcp | inbound/outbound | |
| 110 | pop3 | tcp | inbound | |
| 113 | ident | tcp | outbound | |
| 143 | imap4 | tcp | inbound | |
| 443 | https | tcp | inbound | |
| 465 | smtp | tcp/ssl, tcp/udp | inbound/outbound | |
| 873 | rsync | tpc/udp | outbound | |
| 993 | imap4 | ssl tcp | inbound | |
| 995 | pop3 | ssl tcp | inbound | |
| 2082 | cpanel | tcp | inbound | |
| 2083 | cpanel | ssl tcp | inbound | |
| 2086 | whm | tcp | inbound | |
| 2087 | whm ssl | tcp | inbound | |
| 2089 | cp license | tcp | outbound | |
| 2095 | webmail | tcp | inbound | |
| 2096 | webmail | ssl tcp | inbound | |
| 3306 | mysql | tcp | inbound | Only if you need to connect remotely |
| 6666 | chat | tcp | inbound |
