Re: Variable in iptable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




You cannot define a variable in iptables rule. 
However this is a bit misleading concept of yours, You define variable in shell and then invoke iptables/ipchains providing it input in form of variables.
like:

BADGUY="202.122.122.1"
iptables -A input -s $BADGUY -d 0/0 -j DENY

So if that's what you really meant then yes you can do it, but its not known as variable in iptable :)

Regards, 
---------
Muhammad Faisal Rauf Danka

Chief Technology Officer
Gem Internet Services (Pvt) Ltd.
web: www.gem.net.pk

Vice President
Pakistan Computer Emergency Responce Team (PakCERT)
web: www.pakcert.org

Chief Security Analyst
Applied Technology Research Center (ATRC)
web: www.atrc.net.pk
On Thu, 6 Jun 2002, Sergio Alves de Lima Jr. wrote: 


> 
> Hello, 
> 
> is possible definied variable in iptables rule, example: 
> 
> $user="blueuser"; 
> 
> iptables -A input -s $user -d 0/0 -j ACCEPT 
> 



_____________________________________________________________
---------------------------
[ATTITUDEX.COM]
http://www.attitudex.com/
---------------------------

_____________________________________________________________
Promote your group and strengthen ties to your members with email@yourgroup.org by Everyone.net  http://www.everyone.net/?btn=tag
------------------------------------------------------------------------
     To unsubscribe email security-discuss-request@linuxsecurity.com
         with "unsubscribe" in the subject of the message.


[Index of Archives]     [Fedora Announce]     [Linux Crypto]     [Kernel]     [Netfilter]     [Bugtraq]     [USB]     [Fedora Security]

  Powered by Linux