config rule
option in 'lan'
option src '192.168.50.1/32'
option lookup '101'
config route
option interface 'wg1'
option target '0.0.0.0'
option netmask '0.0.0.0'
option table '101'
config rule
option in 'lan'
option src '192.168.50.2/32'
option lookup '102'
config route
option interface 'wg1'
option target '0.0.0.0'
option netmask '0.0.0.0'
option table '102'
config rule
option in 'lan'
option src '192.168.50.3/32'
option lookup '103'
config route
option interface 'wg1'
option target '0.0.0.0'
option netmask '0.0.0.0'
option table '103'
config rule
option in 'lan'
option src '192.168.50.4/32'
option lookup '104'
config route
option interface 'wg1'
option target '0.0.0.0'
option netmask '0.0.0.0'
option table '104'
config rule
option in 'lan'
option src '192.168.50.5/32'
option lookup '105'
config route
option interface 'wg1'
option target '0.0.0.0'
option netmask '0.0.0.0'
option table '105'
config rule
option in 'lan'
option src '192.168.51.1/32'
option lookup '111'
config route
option interface 'wg2'
option target '0.0.0.0'
option netmask '0.0.0.0'
option table '111'
config rule
option in 'lan'
option src '192.168.51.2/32'
option lookup '112'
config route
option interface 'wg2'
option target '0.0.0.0'
option netmask '0.0.0.0'
option table '112'
config rule
option in 'lan'
option src '192.168.51.3/32'
option lookup '113'
config route
option interface 'wg2'
option target '0.0.0.0'
option netmask '0.0.0.0'
option table '113'
config rule
option in 'lan'
option src '192.168.51.4/32'
option lookup '114'
config route
option interface 'wg2'
option target '0.0.0.0'
option netmask '0.0.0.0'
option table '114'
config rule
option in 'lan'
option src '192.168.51.5/32'
option lookup '115'
config route
option interface 'wg2'
option target '0.0.0.0'
option netmask '0.0.0.0'
option table '115'
config rule
option in 'lan'
option src '192.168.52.1/32'
option lookup '121'
config route
option interface 'wg3'
option target '0.0.0.0'
option netmask '0.0.0.0'
option table '121'
config rule
option in 'lan'
option src '192.168.52.2/32'
option lookup '122'
config route
option interface 'wg3'
option target '0.0.0.0'
option netmask '0.0.0.0'
option table '122'
config rule
option in 'lan'
option src '192.168.52.3/32'
option lookup '123'
config route
option interface 'wg3'
option target '0.0.0.0'
option netmask '0.0.0.0'
option table '123'
config rule
option in 'lan'
option src '192.168.52.4/32'
option lookup '124'
config route
option interface 'wg3'
option target '0.0.0.0'
option netmask '0.0.0.0'
option table '124'
config rule
option in 'lan'
option src '192.168.52.5/32'
option lookup '125'
config route
option interface 'wg3'
option target '0.0.0.0'
option netmask '0.0.0.0'
option table '125'
config rule
option in 'lan'
option src '192.168.53.1/32'
option lookup '131'
config route
option interface 'wg4'
option target '0.0.0.0'
option netmask '0.0.0.0'
option table '131'
config rule
option in 'lan'
option src '192.168.53.2/32'
option lookup '132'
config route
option interface 'wg4'
option target '0.0.0.0'
option netmask '0.0.0.0'
option table '132'
config rule
option in 'lan'
option src '192.168.53.3/32'
option lookup '133'
config route
option interface 'wg4'
option target '0.0.0.0'
option netmask '0.0.0.0'
option table '133'
config rule
option in 'lan'
option src '192.168.53.4/32'
option lookup '134'
config route
option interface 'wg4'
option target '0.0.0.0'
option netmask '0.0.0.0'
option table '134'
config rule
option in 'lan'
option src '192.168.53.5/32'
option lookup '135'
config route
option interface 'wg4'
option target '0.0.0.0'
option netmask '0.0.0.0'
option table '135'
config rule
option in 'lan'
option src '192.168.54.1/32'
option lookup '141'
config route
option interface 'wg5'
option target '0.0.0.0'
option netmask '0.0.0.0'
option table '141'
config rule
option in 'lan'
option src '192.168.54.2/32'
option lookup '142'
config route
option interface 'wg5'
option target '0.0.0.0'
option netmask '0.0.0.0'
option table '142'
config rule
option in 'lan'
option src '192.168.54.3/32'
option lookup '143'
config route
option interface 'wg5'
option target '0.0.0.0'
option netmask '0.0.0.0'
option table '143'
config rule
option in 'lan'
option src '192.168.54.4/32'
option lookup '144'
config route
option interface 'wg4'
option target '0.0.0.0'
option netmask '0.0.0.0'
option table '144'
config rule
option in 'lan'
option src '192.168.54.5/32'
option lookup '145'
config route
option interface 'wg5'
option target '0.0.0.0'
option netmask '0.0.0.0'
option table '145'
These are my wire guard rules and routes.
It works fine when tested.
However, if you work as above, it will take a lot of time.
192.168.50.1~5
192.168.51.1~5
192.168.52.1~5
192.168.53.1~5
192.168.54.1~5
I am looking for a way to make it more comfortable.