HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   custom firewall rules (http://www.howtoforge.com/forums/showthread.php?t=1658)

edge 13th December 2005 10:34

custom firewall rules
 
On my old linux system I was using some custom firewall rules.

(small part of what was in the rc.firewall.local file)
Quote:

IPNR_1="xx.xx.xxx.245"
IPNR_2="xx.xxx.xx.246"

# allow in and point to correct virtual IP
$IPTABLES -I INPUT 30 -p tcp --dport 53 -j ACCEPT -d $IPNR_1
$IPTABLES -I INPUT 30 -p udp --dport 53 -j ACCEPT -d $IPNR_1

$IPTABLES -I INPUT 30 -p tcp --dport 53 -j ACCEPT -d $IPNR_2
$IPTABLES -I INPUT 30 -p udp --dport 53 -j ACCEPT -d $IPNR_2

# allow outgoing
$IPTABLES -I OUTPUT 14 -j ACCEPT -s $IPNR_1
$IPTABLES -I OUTPUT 14 -j ACCEPT -s $IPNR_2
The reason I did this was because I have 8 IP's that I wanted to use.
(1 for DNS (NS1) server, 1 for DNS (NS2) server, 1 for email, 1 for FTP etc. etc.)

Is there a way of setting this within the ISPConfig firewall (runing on Fedora core 4) ?

falko 13th December 2005 12:43

Quote:

Originally Posted by edge
Is there a way of setting this within the ISPConfig firewall (runing on Fedora core 4) ?

No, but you don't have to use the ISPConfig firewall and can continue using your own rules (but make sure you don't block port 81...). :)

edge 13th December 2005 13:00

Quote:

Originally Posted by falko
No, but you don't have to use the ISPConfig firewall and can continue using your own rules (but make sure you don't block port 81...). :)

Thank you for the info falko


All times are GMT +2. The time now is 15:50.

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