I just wrote my first Perl script.  I calculates your
network for you from your IP and your short mark.
If any one wants it, I will post it.

-T

$ GetNetwork.pl 192.198.255.147 28
192.198.255.144

On 07/14/2015 07:34 AM, Vladimir Mosgalin wrote:
Hi ToddAndMargo!

  On 2015.07.14 at 00:14:02 -0700, ToddAndMargo wrote next:

Well you need to add ipv6 support and long mask support and broadcast
address calculation to it and you'll get close to the features of
"ipcalc" command :)


Hi Vladimir,

You know, I have never actually seen an IPv6 installation.
I use this script to set up my firewall iptables.

eth1_net=$NETWORK"/"$ETH1_MASK
$tbls -A dsl-in  -j DROP -i eth1 -s $eth1_net -d $ANY_IP

I suppose at some point I will have to learn IPv6.  Right
now I am going at Perl, which I now see why your
guys like it!

-T

Reply via email to