Re: Calling external file parameters into scripts?
banned_site is a user defined chain.
Thanks for the info on calling an external file. It worked perfectly
(once I got the PATH setup correctly)!! Thanks again.
---- "Eric G. Miller" <email@example.com> wrote:
> On Mon, Aug 06, 2001 at 08:55:06PM -0500, Lance Peterson wrote:
> > I'm trying to call an external file in a bash firewall script on
> my Debian
> > system. The external file is /etc/ban_list. I tried this without
> > for site in /etc/ban_list; do
> > iptables -A banned_site -s site -j DROP
> > done
> > Can someone show me the right way to call in parameters to a script
> > an external file?
> Umm, is "banned_site" a parameter to iptables or a variable?
> for site in $(cat /etc/ban_list); do
> iptables -A banned_site -s $site -j DROP
> Eric G. Miller <firstname.lastname@example.org>
> To UNSUBSCRIBE, email to email@example.com
> with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org
FREE voicemail, email, and fax...all in one place.
Sign Up Now! http://www.onebox.com