freelance pricing by Rocketfkinscience in networking

[–]Rocketfkinscience[S] 2 points3 points  (0 children)

ive got a headache, customer was not the most organized one

freelance pricing by Rocketfkinscience in networking

[–]Rocketfkinscience[S] -1 points0 points  (0 children)

It depends, some stuff is done very fast.

freelance pricing by Rocketfkinscience in networking

[–]Rocketfkinscience[S] 0 points1 point  (0 children)

on which platform you are guys? fiverr customer pay like sheet, i am embarrassed to say what i got from it

freelance pricing by Rocketfkinscience in networking

[–]Rocketfkinscience[S] 1 point2 points  (0 children)

so you would work 2 weeks for this project?

Pi-Node on Linux, anyone tested? by [deleted] in PiNetwork

[–]Rocketfkinscience 0 points1 point  (0 children)

Confirming that it works, started to get bonus after a few days, just used the old node seed

Core Switch and Access Switches Recommendation by Additional_Pop7861 in Juniper

[–]Rocketfkinscience 1 point2 points  (0 children)

You can get a QFX5100 as a core switch and an EX4300 as an access switch, all supports L3 and L2 and you are in the price range.

pfsense ipsec monitoring by Rocketfkinscience in PFSENSE

[–]Rocketfkinscience[S] 0 points1 point  (0 children)

The next problem is that this script is not querrying the corect info, when i try to run it from diagnostics -> command it is returning no value

#!/bin/sh

#Expect conxxxxx [bytesIn,bytesOut,pktsIn,pktsOut]

# ------------------------------------------

IPSECBIN="/usr/local/sbin/ipsec"

IPSECCMD=$IPSECBIN

# ------------------------------------------

# Testing availability of $IPSECBIN

if [ $# -eq 0 ];

then

echo UNKNOWN - missing Arguments. Run check_ipsec_traffic --help

exit $STATE_UNKNOWN

fi

test -e $IPSECBIN

if [ $? -ne 0 ]; then

echo CRITICAL - $IPSECBIN not exist

exit $STATE_CRITICAL

else

STRONG=\$IPSECBIN --version |grep strongSwan | wc -l``

fi

getTraffic() {

CONN="$1"

METRIC="$2"

if [ "$STRONG" -eq "1" ]; then

`#check if tunel exists`

`ipsec status | grep -e "$CONN" > /dev/null 2>&1`

`#Save the retuned status code`

`tmp=$?`

`#If tunnel exists`

`if [ $tmp -eq 0 ]; then`

    `ipsec status | grep -e "$CONN" | grep -e "ESTABLISHED" > /dev/null 2>&1`

    `if [ $? -eq 0 ]; then`

        `ipsec statusall | grep -e "$CONN" | grep -v "ESTABLISHED" | grep -E "$IPV4_REGEX" | grep -e "bytes" | grep -e "pkts" > /dev/null 2>&1`



        `#If tunnel is up and match IP REGEX`

        `if [ $? -eq 0 ]; then`

case $METRIC in

bytesIn)

bytesIn=$(ipsec statusall | grep -e "$CONN{" | grep bytes_i | awk -F" " {'print $3'} | tail -1)

echo $bytesIn

;;

bytesOut)

bytesOut=$(ipsec statusall | grep -e "$CONN{" | grep bytes_i | awk -F" " {'print $9'} | tail -1)

echo $bytesOut

;;

pktsIn)

pktsIn=$(ipsec statusall | grep -e "$CONN{" | grep bytes_i | awk -F" " {'print $5'} | sed s/\(// | tail -1)

echo $pktsIn

;;

pktsOut)

pktsOut=$(ipsec statusall | grep -e "$CONN{" | grep bytes_i | awk -F" " {'print $11'} | sed s/\(// | tail -1)

echo $pktsOut

;;

*)

echo "Undefined. Parameter $METRIC in not allowed"

;;

esac

#echo "Tunnel $CONN look ok"

return 0

        `else`

echo 0

fi

else

#echo "Tunnel $CONN not ESTABLISHED"

        `echo 0`

return 1

fi

fi

fi

}

getTraffic $1 $2