View Single Post
  #1  
Old 13th December 2005, 10:34
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,035
Thanks: 267
Thanked 153 Times in 133 Posts
Default 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) ?
Reply With Quote
Sponsored Links