Add the piratebox to a wired network February 09, 2018 04:58PM |
Registered: 7 years ago Posts: 10 |
Re: Add the piratebox to a wired network February 09, 2018 05:52PM |
Admin Registered: 14 years ago Posts: 4,680 |
(note to myself: change the default hostname to piratebox). Depending on your wired network, accessingLanguage: PHPhttp://alarmpi.local
Might work as well. The Upload-Box won't work out of the box, you need to accessLanguage: PHPhttp://alarmpi/
Language: PHPhttp://alarmpi:8080/
Re: Add the piratebox to a wired network February 23, 2018 08:19PM |
Re: Add the piratebox to a wired network February 24, 2018 06:12AM |
Admin Registered: 14 years ago Posts: 4,680 |
cat <<EOF > /tmp/30-ipforward.conf net.ipv4.ip_forward=1 net.ipv6.conf.default.forwarding=1 net.ipv6.conf.all.forwarding=1 sudo mv 30-ipforward.conf /etc/sysctl.d/ sudo sysctl -p /etc/sysctl.d/30-ipforward.conf
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE iptables -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPTMake the changes persistent
sudo iptables-save > iptables.rules sudo mv iptables.rules /etc/iptables/
Quote
1. Edit /opt/piratebox/conf/dnsmasq_default.conf
2. remove the lines
#dont use resolv.conf
no-resolv
#dont recheck resolv.conf for changes
no-poll
3. add
resolv-file /etc/resolv.conf
Re: Add the piratebox to a wired network March 05, 2019 01:28AM |
Re: Add the piratebox to a wired network March 11, 2019 07:28PM |
Admin Registered: 14 years ago Posts: 4,680 |