Forked from muffycompo/coovachilli-build-options.txt
Created
September 9, 2019 16:12
-
-
Save maprangzth/c71f84560d9a7b951c7aadd21ebbc39e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update | |
apt-get install -y g++ automake autoconf libtool libltdl-dev gengetopt make cmake libssl-dev libjson-c2 libjson-c-dev | |
git clone https://github.com/coova/coova-chilli | |
./bootstrap | |
./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info \ | |
--sysconfdir=/etc --localstatedir=/var --enable-largelimits \ | |
--enable-proxyvsa --enable-miniportal --enable-chilliredir \ | |
--enable-chilliproxy --enable-binstatusfile --enable-chilliscript \ | |
--enable-chilliradsec --enable-dnslog --enable-layer3 --enable-eapol \ | |
--enable-uamdomainfile --enable-redirdnsreq --enable-modules \ | |
--enable-multiroute --enable-extadmvsa --with-openssl --with-poll --enable-json | |
make && make install | |
# Basic Config - Starting Point | |
# https://gist.github.com/muffycompo/b5d6bb587cc14df85c1f18a61ff60d16 | |
# Disabling Ubuntu 16.x Automatic Naming | |
nano /etc/default/grub | |
GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0" | |
grub-mkconfig -o /boot/grub/grub.cfg | |
# IPUP.SH - Iptable Rules | |
# UAM server specified as 172.16.1.1 | |
iptables -I INPUT -i tun0 -p tcp -m tcp --dport 80 --dst 172.16.1.1 -j ACCEPT | |
iptables -I INPUT -i tun0 -p tcp -m tcp --dport 443 --dst 172.16.1.1 -j ACCEPT | |
iptables -I INPUT -i tun0 -p tcp -m tcp --dport 22 --dst 172.16.1.1 -j ACCEPT | |
iptables -I INPUT -i tun0 -p tcp -m tcp --dport 8000 --dst 172.16.1.1 -j ACCEPT | |
# IPDOWN.SH - Iptable Rules | |
# UAM server specified as 172.16.1.1 | |
iptables -D INPUT -i tun0 -p tcp -m tcp --dport 80 --dst 172.16.1.1 -j ACCEPT | |
iptables -D INPUT -i tun0 -p tcp -m tcp --dport 443 --dst 172.16.1.1 -j ACCEPT | |
iptables -D INPUT -i tun0 -p tcp -m tcp --dport 22 --dst 172.16.1.1 -j ACCEPT | |
iptables -D INPUT -i tun0 -p tcp -m tcp --dport 8000 --dst 172.16.1.1 -j ACCEPT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment