Callan Bryant
0579b4cdd3
Merge pull request #25 from fs111/up-down
...
Implements PostUp and PostDown commands using `/bin/sh`
2020-11-19 22:53:56 +00:00
Andre Kelpe
e782db30e9
Implements PostUp and PostDown commands using /bin/sh
...
This introduces PostUp and PostDown in dsnet. PostUp and PostDown allow
the user to run arbitrary commands after the device is up or down. These
are typically used to change the firewall rules via iptables. A working
example would be
...
"PostUp" : "iptables -A FORWARD -i dsnet -j ACCEPT; iptables -A FORWARD -o dsnet -j ACCEPT; iptables -t nat -A POSTROUTING -o ens2 -j MASQUERADE ",
"PostDown" : "iptables -D FORWARD -i dsnet -j ACCEPT; iptables -D FORWARD -o dsnet -j ACCEPT; iptables -t nat -D POSTROUTING -o ens2 -j MASQUERADE ",
...
All commands are executed by `/bin/sh` and no filtering or sandboxing is
applied. Users of this should know what they are doing.
Fixes https://github.com/naggie/dsnet/issues/16
2020-11-19 23:21:11 +01:00
Callan Bryant
704e5ba51c
deterministic wg interface name on edgeos explanation
2020-11-18 19:34:38 +00:00
Callan Bryant
aa785b9ab6
split off config generation
2020-11-01 09:17:25 +00:00
Callan Bryant
135fa12f00
update docs
2020-10-27 22:19:58 +00:00
Callan Bryant
19eb33403a
move report_rendering into contrib
2020-06-15 20:52:24 +01:00
Callan Bryant
d948f204fc
move report rendering files into own directory
2020-06-01 21:45:08 +01:00
Martin Eskdale Moen
ce1b1dd9ff
Added xmit bytes to interface report
2020-05-28 15:50:19 +01:00
Callan Bryant
fb6ccee193
a few docs/instructions on the new report php file
2020-05-24 10:22:39 +01:00
Callan Bryant
944097d1c9
cron FAQ
2020-05-23 10:26:03 +01:00
Callan Bryant
26aa8a99b5
enable at boot instructions
2020-05-23 09:19:02 +01:00
Callan Bryant
245966e2ad
sort command ordering
2020-05-17 21:25:39 +01:00
Callan Bryant
d62d125c36
FAQ note about private keys
2020-05-14 21:20:50 +01:00
Callan Bryant
caea0352ca
screenshot: from scratch
2020-05-15 08:08:31 +01:00
Callan Bryant
d8ced471ec
add wg screenshot
2020-05-15 08:07:59 +01:00
Callan Bryant
149558a8d5
highlight working versiont
2020-05-15 08:07:58 +01:00
Callan Bryant
b2dbfe9cdc
add "add" screenshot
2020-05-15 08:07:10 +01:00
Callan Bryant
47e58213a2
add dsnetreport shortcode
2020-05-12 19:34:47 +01:00
Callan Bryant
f37dde571d
add missing sudo
2020-05-07 17:28:43 +01:00
Callan Bryant
55afa1c49c
correct install typo
2020-05-07 17:28:03 +01:00
Callan Bryant
60306a7b72
add install steps to readme
2020-05-07 17:22:02 +01:00
Callan Bryant
8a419e2e91
note about private keys
2020-05-07 15:45:31 +01:00
Callan Bryant
eddd7d4397
write about report
2020-05-07 15:45:25 +01:00
Callan Bryant
bd87703c78
add verbatim copy of config
2020-05-07 15:44:45 +01:00
Callan Bryant
93514d437b
add config documentation
2020-05-07 15:44:44 +01:00
Callan Bryant
cf467c346b
check peer exists before removal
2020-03-08 19:08:19 +00:00
Callan Bryant
1fd9e03509
update README
2020-03-07 18:59:34 +00:00
Callan Bryant
125f3c4e26
working config generation
2020-03-03 21:28:06 +00:00
Callan Bryant
19668c0334
start peer conf file, update README
2020-03-02 19:57:52 +00:00
Callan Bryant
57002288de
update README
2020-03-02 18:15:34 +00:00
Callan Bryant
0e06d0181f
update subcmds
2020-03-02 00:48:59 +00:00
Callan Bryant
2c3bb65612
error() check
2020-03-01 23:48:02 +00:00
Callan Bryant
ccba347caf
move readme to /
2020-02-27 21:56:56 +00:00