From 4d8f5184c7778d137a76f882512cdd78e9d3e5c4 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Wed, 31 Dec 2025 11:46:25 +0800 Subject: network interface name somehow changed --- etc/mimic/enu1u2c2.conf | 2 +- etc/mimic/wlan0.conf | 42 ---------------------- etc/mimic/wld0.conf | 42 ++++++++++++++++++++++ etc/mimic/wwu1i4.conf | 2 +- .../multi-user.target.wants/mimic@wlan0.service | 1 - .../multi-user.target.wants/mimic@wld0.service | 1 + 6 files changed, 45 insertions(+), 45 deletions(-) delete mode 100644 etc/mimic/wlan0.conf create mode 100644 etc/mimic/wld0.conf delete mode 120000 etc/systemd/system/multi-user.target.wants/mimic@wlan0.service create mode 120000 etc/systemd/system/multi-user.target.wants/mimic@wld0.service diff --git a/etc/mimic/enu1u2c2.conf b/etc/mimic/enu1u2c2.conf index 74ec9c19..dda335d4 120000 --- a/etc/mimic/enu1u2c2.conf +++ b/etc/mimic/enu1u2c2.conf @@ -1 +1 @@ -wlan0.conf \ No newline at end of file +wld0.conf \ No newline at end of file diff --git a/etc/mimic/wlan0.conf b/etc/mimic/wlan0.conf deleted file mode 100644 index 68160109..00000000 --- a/etc/mimic/wlan0.conf +++ /dev/null @@ -1,42 +0,0 @@ -# This is an example configuration for Mimic. For each interface, you may -# create .conf in /etc/mimic and in the following format to -# pass arguments to Mimic's systemd service (mimic@.service). -# -# Each configuration should be in the format of `key=value`. There might be -# whitespaces between key, '=' and value, and should be kept in one line. Empty -# lines and ones that start with '#' are ignored. - -# Sets log verbosity. Log level equal to or higher (in number) than log -# verbosity will be discarded. Both number and string matching log levels are -# accepted. Number must be greater than or equal to 0. Defaults to info (2). -# -# Log levels: -# 0 - error (cannot be discarded) -# 1 - warn -# 2 - info -# 3 - debug -# 4 - trace -#log.verbosity = trace - -# Specify link layer type, can be 'eth' (Ethernet) or 'none' (no L2 header, -# like PPP or TUN). Defaults to 'eth'. -#link_type = eth - -# Force XDP attach mode, either 'skb' or 'native'. Defaults to 'native' if -# target interface supports it, or 'skb'. -#xdp_mode = skb - -# Use libxdp instead of libbpf to load XDP program. libxdp supports chaining -# multiple XDP programs on one interface. Mimic loads libxdp dynamically using -# dlopen. Defaults to false. -#use_libxdp = false - -# Whether to always use maximum window size in TCP packets. Defaults to false. -#max_window = false - -# Specifies which packets should be processed by Mimic. Can be set more -# than once to allow parallel rules (OR'ed). -# -# Filter format follows `(local|remote)=IP:port`. For IPv6, IP addresses -# need to be surrounded by square brackets. See below for examples. -filter = remote=104.224.159.210:54635 diff --git a/etc/mimic/wld0.conf b/etc/mimic/wld0.conf new file mode 100644 index 00000000..68160109 --- /dev/null +++ b/etc/mimic/wld0.conf @@ -0,0 +1,42 @@ +# This is an example configuration for Mimic. For each interface, you may +# create .conf in /etc/mimic and in the following format to +# pass arguments to Mimic's systemd service (mimic@.service). +# +# Each configuration should be in the format of `key=value`. There might be +# whitespaces between key, '=' and value, and should be kept in one line. Empty +# lines and ones that start with '#' are ignored. + +# Sets log verbosity. Log level equal to or higher (in number) than log +# verbosity will be discarded. Both number and string matching log levels are +# accepted. Number must be greater than or equal to 0. Defaults to info (2). +# +# Log levels: +# 0 - error (cannot be discarded) +# 1 - warn +# 2 - info +# 3 - debug +# 4 - trace +#log.verbosity = trace + +# Specify link layer type, can be 'eth' (Ethernet) or 'none' (no L2 header, +# like PPP or TUN). Defaults to 'eth'. +#link_type = eth + +# Force XDP attach mode, either 'skb' or 'native'. Defaults to 'native' if +# target interface supports it, or 'skb'. +#xdp_mode = skb + +# Use libxdp instead of libbpf to load XDP program. libxdp supports chaining +# multiple XDP programs on one interface. Mimic loads libxdp dynamically using +# dlopen. Defaults to false. +#use_libxdp = false + +# Whether to always use maximum window size in TCP packets. Defaults to false. +#max_window = false + +# Specifies which packets should be processed by Mimic. Can be set more +# than once to allow parallel rules (OR'ed). +# +# Filter format follows `(local|remote)=IP:port`. For IPv6, IP addresses +# need to be surrounded by square brackets. See below for examples. +filter = remote=104.224.159.210:54635 diff --git a/etc/mimic/wwu1i4.conf b/etc/mimic/wwu1i4.conf index 74ec9c19..dda335d4 120000 --- a/etc/mimic/wwu1i4.conf +++ b/etc/mimic/wwu1i4.conf @@ -1 +1 @@ -wlan0.conf \ No newline at end of file +wld0.conf \ No newline at end of file diff --git a/etc/systemd/system/multi-user.target.wants/mimic@wlan0.service b/etc/systemd/system/multi-user.target.wants/mimic@wlan0.service deleted file mode 120000 index dce9a731..00000000 --- a/etc/systemd/system/multi-user.target.wants/mimic@wlan0.service +++ /dev/null @@ -1 +0,0 @@ -/usr/lib/systemd/system/mimic@.service \ No newline at end of file diff --git a/etc/systemd/system/multi-user.target.wants/mimic@wld0.service b/etc/systemd/system/multi-user.target.wants/mimic@wld0.service new file mode 120000 index 00000000..dce9a731 --- /dev/null +++ b/etc/systemd/system/multi-user.target.wants/mimic@wld0.service @@ -0,0 +1 @@ +/usr/lib/systemd/system/mimic@.service \ No newline at end of file -- cgit v1.2.3-70-g09d2