[Ilugc] iptables

  • From: karthikeyan.balasubramanian@xxxxxxxxxxxxx (Karthikeyan)
  • Date: Tue May 3 13:32:46 2005

Hi,
kannan krishnamurthy wrote:

Dear all,

In my server i saw some script in
tkfunctions.(/etc/tkfunctions)i.e 
Siteall()
{
for i in 'cat /root/allowed-sites';
do
iptables -A FORWARD -s 192.168.x.x/24 -d $i -p tcp
-dport 80 -j ACCEPT
done
}
In this script what is'$i',dport and sport stands for?

Thanks,

A.K. Kannan


YOUR'S

KANNAN.A.K.

 From my understanding $i stands for entries in the /root/allowed-sites and
-dport stands for destination port.
-sport stands for source port.

HTH

Karthikeyan B

Other related posts: