Skip to content

Commit

Permalink
Update wg_manager.sh
Browse files Browse the repository at this point in the history
Use the new Policy RPDB database table layout.
Remove ability to migrate legacy 'rpxx' format rule

Prevent setting 'client' Peer 'Auto=P' if no Policy rules exist for the Peer

Update 'peer help' command to include new RPDB rule management

 peer help

	peer help								- This text
	peer									- Show ALL Peers in database
	peer peer_name								- Show Peer in database or for details e.g peer wg21 config
	peer peer_name {cmd {options} }						- Action the command against the Peer
	peer peer_name del							- Delete the Peer from the database and all of its files *.conf, *.key
	peer category								- Show Peer categories in database
	peer peer_name category [category_name {del | add peer_name[...]} ]	- Create a new category with 3 Peers e.g. peer category GroupA add wg17 wg99 wg11
	peer new [peer_name [options]]						- Create new server Peer e.g. peer new wg27 ip=10.50.99.1/24 port=12345
	peer peer_name [del|add] ipset {ipset_name[...]}			- Selectively Route IPSets e.g. peer wg13 add ipset NetFlix Hulu
	peer peer_name {rule [del {id_num} |add [wan] rule_def]}		- Manage Policy rules e.g. peer wg13 rule add 172.16.1.0/24 comment All LAN
													   peer wg13 rule add wan 52.97.133.162 comment smtp.office365.com
													   peer wg13 rule add wan 172.16.1.100 9.9.9.9 comment Quad9 DNS
  • Loading branch information
MartineauUK committed Mar 31, 2021
1 parent 08d2611 commit 31d5ba9
Showing 1 changed file with 245 additions and 171 deletions.

0 comments on commit 31d5ba9

Please sign in to comment.