SCIENTIFIC-LINUX-USERS Archives

July 2015

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
ToddAndMargo <[log in to unmask]>
Reply To:
ToddAndMargo <[log in to unmask]>
Date:
Tue, 14 Jul 2015 12:26:00 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (33 lines)
>> 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

ATOM RSS1 RSS2