Skip to content

Instantly share code, notes, and snippets.

@tuxnker
tuxnker / forticlient_macos_capitan_fix.sh
Last active November 29, 2017 01:23
forticlient ssl vpn split tunnel fix for mac os el capitan(need to be made executable and run as sudo every time you connect to the vpn)
#!/bin/bash
default_line=$(netstat -rn |grep default)
gateway=$(echo $default_line | awk '{print $2}')
interface=$(echo $default_line | awk '{print $6}')
echo $gateway
echo $interface
scutil <<EOF
d.init
get State:/Network/Service/forticlientsslvpn/IPv4
@tuxnker
tuxnker / weblog_helper
Last active February 27, 2016 09:56
weblog_helper
#!//usr/bin/env python
import re
import sys
import getopt
from netaddr import IPNetwork
def main(argv):
ip = ''
infile = ''
try: