Forked from muffycompo/coovachilli-build-options.txt
Last active
September 3, 2022 05:53
-
-
Save kariuki254/4ba40240b62fae33cb0bfcdd4ecb52de to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #OS: Ubuntu 22.04.1 LTS x86_64 | |
| apt-get update | |
| apt-get install -y g++ automake autoconf libtool libltdl-dev gengetopt make cmake libssl-dev libjson-c-dev daemon route | |
| 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 | |
| # /etc/chilli/ipup.sh - Iptable Rules | |
| #!/bin/sh | |
| # | |
| #Allow IP masquarading through this box | |
| /usr/bin/iptables -t nat -A POSTROUTING -0 enol -j MASQUERADE | |
| # 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 | |
| sudo vi /etc/default/chilli | |
| START_CHILLI=1 | |
| CONFFILE="/etc/chilli.conf" | |
| HS_USER="chilli" | |
| ### backup /etc/chilli/default and create a copy of it as /etc/chilli/config | |
| sudo cp /etc/chilli/default /etc/chilli/config | |
| # update file with the client HS_LANIF=interface since the HS_WANIF=interface is automatically filled in | |
| #First enable the service so it will start up during boot | |
| sudo systemctl enable chilli | |
| # Feedback code should be... | |
| # chilli.service is not a native service, redirecting to systemd-sysv-install. | |
| # Executing: /lib/systemd/systemd-sysv-install enable chilli | |
| sudo systemctl start chilli | |
| sudo systemctl status chilli |
/etc/init.d/chilli start
/etc/init.d/chilli: 58: /etc/chilli/functions: route: not found
$Starting chilli: /etc/init.d/chilli: 66: daemon: not found
fixed ** route: not found** using : apt-get install route -y
fixed ** daemon: not found** using : apt-get install daemon -y
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
libjson-c2 is unnecessary because it is installed automatically and its distribution has different versions e.g libjson-c{2..5}