I installed the package for sftp and rp luci pppoe server, removed the "#" in the pppoe server configuration file via sftp, added pppoe * pppoe* in the chap secrets file. Changed the pppoe server option: adding ms-dns 8.8.8.8 and requre-chap. I restarted, created a new interface and an empty zone for it, allocated 1 port ( lan4) from the bridge, configured the interface for pppoe as ipv4 192.168.85.1 network mask 24, after all this, the pppoe client cannot get ip or log in, ip for listening side 192.168.85.1 / first remote ip 192.168.85.3 was registered in the luci web interface as Should I fix it?
Nah, let it be.
google translator
how i fix it?
Without the config, dunno.
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </>
" button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
ubus call system board
cat /etc/config/network
cat /etc/config/wireless
cat /etc/config/dhcp
cat /etc/config/firewall
root@OpenWrt:~# ubus call system board
{
"kernel": "5.15.150",
"hostname": "OpenWrt",
"system": "MediaTek MT7621 ver:1 eco:3",
"model": "TP-Link Archer C6U v1",
"board_name": "tplink,archer-c6u-v1",
"rootfs_type": "squashfs",
"release": {
"distribution": "OpenWrt",
"version": "23.05.3",
"revision": "r23809-234f1a2efa",
"target": "ramips/mt7621",
"description": "OpenWrt 23.05.3 r23809-234f1a2efa"
}
}
root@OpenWrt:~# cat /etc/config/network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fde7:dcb3:694f::/48'
option packet_steering '1'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'wan'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '10.1.1.3'
option netmask '255.255.255.0'
option ip6assign '60'
option gateway '10.1.1.1'
list dns '10.1.1.1'
config interface 'PPPoE'
option proto 'static'
option device 'lan4'
option ipaddr '192.168.85.1'
option netmask '255.255.255.0'
root@OpenWrt:~# cat /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option path '1e140000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0'
option channel '1'
option band '2g'
option htmode 'HT20'
option disabled '1'
config wifi-iface 'default_radio0'
option device 'radio0'
option network 'lan'
option mode 'ap'
option ssid 'OpenWrt'
option encryption 'none'
config wifi-device 'radio1'
option type 'mac80211'
option path '1e140000.pcie/pci0000:00/0000:00:01.0/0000:02:00.0'
option channel '36'
option band '5g'
option htmode 'VHT80'
option disabled '1'
config wifi-iface 'default_radio1'
option device 'radio1'
option network 'lan'
option mode 'ap'
option ssid 'OpenWrt'
option encryption 'none'
root@OpenWrt:~# cat /etc/config/dhcp
config dnsmasq
option domainneeded '1'
option boguspriv '1'
option filterwin2k '0'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option nonegcache '0'
option cachesize '1000'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
option nonwildcard '1'
option localservice '1'
option ednspacket_max '1232'
option filter_aaaa '0'
option filter_a '0'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv4 'server'
option dhcpv6 'server'
option ra 'server'
list ra_flags 'managed-config'
list ra_flags 'other-config'
list dhcp_option '6,10.1.1.1'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
config dhcp 'PPPoE'
option interface 'PPPoE'
option start '100'
option limit '150'
option leasetime '12h'
option ignore '1'
root@OpenWrt:~# cat /etc/config/firewall
config defaults
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option synflood_protect '1'
config zone
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
list network 'lan'
config zone
option name 'PPPoE'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
list network 'PPPoE'
option mtu_fix '1'
config forwarding
option src 'PPPoE'
option dest 'lan'
config forwarding
option src 'lan'
option dest 'PPPoE'
Start by removing wan from here.
What's on 10.1.1.1 ?
Why did you map PPPoE to lan4, and not wan ?
Why are you setting up a PPPoE server?
this device is considered as a network switch with a pppoe server in this no-wan zone but only LAN, so gateway 10.1.1.1
The wan port works as part of the lan switch of the 10.1.1.0 network as a regular lan port (do not lose it)
Isn't it possible so that the pppoe server listens to 4port and then the traffic drops to the LAN ( 10.1.1.0), and the client for pppoe connects to the 4lan port
@frollic Is it possible to do this? PC ( client ) -> lan4 PPPoE server -> Lan 10.1.1.0?
in my previous topic they didn’t help me
I installed the package for sftp and rp luci pppoe server, removed the "#" in the pppoe server configuration file via sftp, added pppoe * pppoe* in the chap secrets file. Changed the pppoe server option: adding ms-dns 8.8.8.8 and requre-chap. I restarted, created a new interface and an empty zone for it, allocated 1 port ( lan4) from the bridge, configured the interface for pppoe as ipv4 192.168.85.1 network mask 24, after all this, the pppoe client cannot get ip or log in, ip for listening side 192.168.85.1 / first remote ip 192.168.85.3 was registered in the luci web interface as how i fix it
?
There is a discrepancy between the port you declare you will use and the diagram you posted. Make sure you have defined the correct port (device).
Remove all that and make the
lan
firewall zone look like this
config zone
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
list network 'lan'
list device 'ppp+'
option masq '1'
The PPPoE
interface should look like this:
config interface 'PPPoE'
option proto 'none'
option device 'lan4'
Remove this from /etc/config/dhcp.
Example configurations of everything else:
# /etc/config/pppoe
config pppoe_server
option interface PPPoE
option ac_name my-pppoe-server
list service_name my-pppoe-service
option maxsessionsperpeer 0
option localip 192.168.85.1
option firstremoteip 192.168.85.3
option maxsessions 64
option optionsfile /etc/ppp/pppoe-server-options
option randomsessions 1
option unit 2
option offset 0
option timeout 60
option mss 1468
option sync 0
# /etc/ppp/pppoe-server-options
ms-dns 8.8.8.8
debug
lcp-echo-interval 10
lcp-echo-failure 2
require-chap
ktune
mru 1492
mtu 1492
# /etc/ppp/chap-secrets
#USERNAME PROVIDER PASSWORD IPADDRESS
"pppoe" * "secret" 192.168.85.3
I did everything as you described, but it still doesn’t work, attached screenshots and current configuration files
# PPP options for the PPPoE server
# LIC: GPL
ms-dns 8.8.8.8
debug
lcp-echo-interval 10
lcp-echo-failure 2
require-chap
ktune
mru 1492
mtu 1492
config pppoe_server
option interface 'lan4'
option ac_name 'my-pppoe-server'
list service_name 'my-pppoe-service'
option maxsessionsperpeer '0'
option localip '192.168.85.1'
option firstremoteip '192.168.85.3'
option maxsessions '64'
option optionsfile '/etc/ppp/pppoe-server-options'
option randomsessions '1'
option offset '0'
option timeout '60'
option mss '1468'
option enabled '1'
config defaults
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option synflood_protect '1'
config zone
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
list network 'lan'
list device 'ppp+'
option masq '1'
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fdc6:2bbd:be35::/48'
option packet_steering '1'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'wan'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.251'
option netmask '255.255.255.0'
option ip6assign '60'
list dns '192.168.1.1'
option gateway '192.168.1.1'
config interface 'PPPoE'
option proto 'none'
option device 'lan4'
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.