Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- sysctl -w net.core.somaxconn=65535
- sysctl -w net.ipv4.conf.all.src_valid_mark=1
- # Create the necessary file structure for /dev/net/tun
- if ( [ ! -c /dev/net/tun ] ); then
- if ( [ ! -d /dev/net ] ); then
- mkdir -m 755 /dev/net
- fi
- mknod /dev/net/tun c 10 200
- chmod 0755 /dev/net/tun
- fi
- # Load the tun module if not already loaded
- if ( !(lsmod | grep -q "^tun\s") ); then
- insmod /lib/modules/tun.ko
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement