Hello, to everyone who is having a pppoe problem, I kindly ask you to follow the steps below, as it resolved the issue of fullconenat and also of dns in quic in adguard.
I found the problem related to pppoe, here’s how I fixed it.
I was getting this error “DHCP packet received on eth1 which has no address”
this is the fix
echo "except-interface=eth1" >> /etc/dnsmasq.conf
service dnsmasq restart
After that, update the fullconenat file to the data below.
#!/bin/sh /etc/rc.common
START=99
set_rules() {
iptables -t nat -I POSTROUTING -o $1 -j FULLCONENAT 2>/dev/null
iptables -t nat -I PREROUTING -i $1 -j FULLCONENAT 2>/dev/null
}
clear_rules() {
local ifaces=$(iptables -t nat -nvL POSTROUTING|grep FULLCONENAT|awk -F' ' '{print $7}')
for item in $ifaces; do
iptables -t nat -D POSTROUTING -o $item -j FULLCONENAT 2>/dev/null
iptables -t nat -D PREROUTING -i $item -j FULLCONENAT 2>/dev/null
done
}
find_wan_gw()
{
local wan_list=$(ubus list|grep interface.|grep -v -E 'lan|loopback|4|6')
for item in $wan_list; do
local ubus_data=$(ubus call $item status)
local up="$(echo $ubus_data|jsonfilter -e '@.up')"
[ "$up" = "true" ] || continue
local gw="$(echo $ubus_data|jsonfilter -e '@.l3_device')"
[ -n "$gw" ] && set_rules $gw
done
}
stop() {
clear_rules
}
start() {
if [ "$(uci get fullconenat.global.enable)" = "1" ]; then
local ifaces=$(iptables -t nat -nvL POSTROUTING|grep FULLCONENAT|awk -F' ' '{print $7}')
[ -z "$ifaces" ] && find_wan_gw
fi
}
located at /etc/init.d/fullconenat
After that everything works perfectly.
Follow the correction link.
another fix is regarding dns in quic in Adguard, to be able to use it you have to place the commands below in /etc/sysctl.d/10-default.conf and/or /etc/sysctl.conf
Below are the corrections.
Mon Mar 4 08:46:52 2024 user.notice AdGuardHome[21936]: 2024/03/04 11:46:52.756130 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Receive-Buffer-Size for details.
net.core.rmem_max=2500000
net.core.wmem_max=2500000