Commit Graph

44 Commits (e5ef19f70f3b4f0fcd6211dca16b307012f8c1f7)

Author SHA1 Message Date
Jordan Sokolic e5ef19f70f ok shellcheck 2020-04-17 13:51:44 +03:00
Jordan Sokolic eea82e1c8b wait just a little more 2020-04-17 13:47:50 +03:00
Jordan Sokolic a4f19bbbe1 reload firewall rules on start
seems to be some race condition or weird interaction between docker and uci firewall scripts preventing firewall rules from loading properly. so flush all tables and reload the firewall
2020-04-17 13:46:44 +03:00
Jordan Sokolic 7ca44ef182 rpi is slow 2020-04-16 11:15:13 +03:00
Jordan Sokolic 455afd7937 don't assign wan subnet through docker 2020-04-12 09:26:19 +03:00
Jordan Sokolic 6391a89710 override dns 2020-03-12 19:14:49 +02:00
Jordan Sokolic db83e0fb8e now with ipv6! 2020-03-04 08:54:44 +02:00
Jordan Sokolic d622f9218c check arp. why not? 2020-03-04 08:51:49 +02:00
Jordan Sokolic 19267cedeb exit if bringing up the network fails 2020-03-04 08:50:08 +02:00
Jordan Sokolic 72ef74a0a5 bandwidth monitoring 2020-02-26 21:47:38 +02:00
Jordan Sokolic 87301e1c10 allow to find conf file from outside script path 2020-02-22 21:11:28 +02:00
Jordan Sokolic 0c935e3654 pass config_file as argv[1] 2020-02-21 08:47:18 +02:00
Jordan Sokolic eaabddc3a7 set the root password on build 2020-02-20 09:51:30 +02:00
Jordan Sokolic 8a1ff9118a die on missing config file 2020-02-20 08:26:53 +02:00
Jordan Sokolic c66bd36dc4 point to new config 2020-02-20 08:22:02 +02:00
Jordan Sokolic 9c21adec00 sanity check 2020-02-19 23:04:18 +02:00
Jordan Sokolic ba90bc54a3 move hairpin function out of main 2020-02-19 22:58:51 +02:00
Jordan Sokolic c2df8ab8a2 set LAN_ID also if container exists 2020-02-19 22:32:28 +02:00
Jordan Sokolic ae4d71d028 get a dhcp lease on the host 2020-02-19 22:24:17 +02:00
Jordan Sokolic f829b5f250 set hairpin on for wifi interfaces to see each other 2020-02-19 22:24:01 +02:00
Jordan Sokolic e6b81441d4 switch to bridge driver for lan 2020-02-19 22:23:03 +02:00
Jordan Sokolic fc321525da don't need to exclude LAN_HOST 2020-02-19 21:29:08 +02:00
Jordan Sokolic 161fb96b91 shfmt 2020-02-18 09:46:26 +02:00
Jordan Sokolic aaec0bc477 namespace symlink (debugging) 2020-02-18 09:45:59 +02:00
Jordan Sokolic 73c3a007aa check nmcli 2020-02-18 09:45:26 +02:00
Jordan Sokolic d5c7313802 formatting 2020-02-17 22:42:49 +02:00
Jordan Sokolic 23cded76b6 use dummy interface for lan net 2020-02-17 22:16:36 +02:00
Jordan Sokolic e0f8758b60 call _init_network from container creation 2020-02-17 22:14:32 +02:00
Jordan Sokolic 7734cf90e8 route the whole subnet 2020-02-17 22:14:04 +02:00
Jordan Sokolic 34fbd5286f more changes for macvlan 2020-02-16 09:01:20 +02:00
Jordan Sokolic db0a32a50b move network stuff to separate function 2020-02-15 23:15:23 +02:00
Jordan Sokolic 4845d737bc don't need _get_dev_from_phy any more (whew) 2020-02-15 23:11:50 +02:00
Jordan Sokolic 268d534e63 template configuration 2020-02-15 23:09:51 +02:00
Jordan Sokolic 57af2b760d switch to macvlan networking 2020-02-15 22:11:32 +02:00
Jordan Sokolic 96c1fe9a96 get wifi iface from config 2020-02-15 07:40:23 +02:00
Jordan Sokolic b8e572ac4b move stuff out of main 2020-02-14 18:15:03 +02:00
Jordan Sokolic 8dfe4c2282 sometimes ubus is not ready 2020-02-14 13:46:31 +02:00
Jordan Sokolic fccd5651ba only create container if it doesn't already exist 2020-02-14 13:17:36 +02:00
Jordan Sokolic a097b292e9 configure on startup using rc.local 2020-02-14 12:24:19 +02:00
Jordan Sokolic 55b2a8020c add some logging and turn off -x 2020-02-14 10:18:25 +02:00
Jordan Sokolic 24a72c4a22 we don't need tty 2020-02-14 09:25:22 +02:00
Jordan Sokolic 5e0f523b7a note 2020-02-14 09:13:44 +02:00
Jordan Sokolic 9b3e376f84 cleanup 2020-02-14 09:11:24 +02:00
Jordan Sokolic cc7b1c7542 initial 2020-02-13 23:41:33 +02:00