mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
dnsdist: add sample xsk AF_XDP config
a simple working config sample for xsk AF_XDP Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
This commit is contained in:
12
config/dnsdist/dnsdist-xsk.conf
Normal file
12
config/dnsdist/dnsdist-xsk.conf
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
xsk = newXsk({ifName="green0", NIC_queue_id=0, frameNums=65536, xskMapPath="/sys/fs/bpf/dnsdist/xsk_map"})
|
||||||
|
|
||||||
|
addLocal("0.0.0.0:53", {xskSocket=xsk})
|
||||||
|
|
||||||
|
newServer("8.8.8.8:53")
|
||||||
|
newServer("1.1.1.1:53")
|
||||||
|
|
||||||
|
---- newServer({address="8.8.8.8", healthCheckMode='lazy', checkInterval=1, lazyHealthCheckFailedInterval=30, rise=2, maxCheckFailures=3, lazyHealthCheckThreshold=30, lazyHealthCheckSampleSize=100, lazyHealthCheckMinSampleCount=10, lazyHealthCheckMode='TimeoutOnly'})
|
||||||
|
|
||||||
|
---- newServer({address="1.1.1.1", healthCheckMode='lazy', checkInterval=1, lazyHealthCheckFailedInterval=30, rise=2, maxCheckFailures=3, lazyHealthCheckThreshold=30, lazyHealthCheckSampleSize=100, lazyHealthCheckMinSampleCount=10, lazyHealthCheckMode='TimeoutOnly'})
|
||||||
|
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
etc/dnsdist.conf-dist
|
etc/dnsdist.conf-dist
|
||||||
|
etc/dnsdist-xsk.conf
|
||||||
etc/rc.d/init.d/dnsdist
|
etc/rc.d/init.d/dnsdist
|
||||||
usr/bin/dnsdist
|
usr/bin/dnsdist
|
||||||
#usr/share/man/man1/dnsdist.1
|
#usr/share/man/man1/dnsdist.1
|
||||||
|
|||||||
@@ -103,6 +103,10 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
|||||||
install -v -m 644 $(DIR_SRC)/config/backup/includes/dnsdist \
|
install -v -m 644 $(DIR_SRC)/config/backup/includes/dnsdist \
|
||||||
/var/ipfire/backup/addons/includes/dnsdist
|
/var/ipfire/backup/addons/includes/dnsdist
|
||||||
|
|
||||||
|
# Install xsk AF_XDP configuration
|
||||||
|
install -v -m 644 $(DIR_SRC)/config/dnsdist/dnsdist-xsk.conf \
|
||||||
|
/etc/dnsdist-xsk.conf
|
||||||
|
|
||||||
@rm -rf $(DIR_APP)
|
@rm -rf $(DIR_APP)
|
||||||
@$(POSTBUILD)
|
@$(POSTBUILD)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user