Hello, dears.
I created a pppoe-server on eth1 and set snat rule from eth1 to eth0.
Pppoe clients work well.
But how can I deny terminals with static ip address to access network?
If I connect a computer to eth1, and set computer’s ip address=192.168.1.100/24, gateway=192.168.1.1 and dns…
The computer can access network without pppoe dial up, that should not be allowed.
Following is my configuration:
wan
set interfaces ethernet eth0 address dhcp
lan
set interfaces ethernet eth1 address 192.168.1.1/24
pppoe-server
set service pppoe-server access-concentrator pppoeoneth1
set service pppoe-server authentication mode local
set service pppoe-server authentication local-users username ppp01 passsword ppp01password
set service pppoe-server interface eth1
set service pppoe-server gateway-address 192.168.1.1
set service pppoe-server name-server 114.114.114.114
set service pppoe-server name-server 223.5.5.5.5
set service pppoe-server client-ip-pool start 192.168.1.10
set service pppoe-server client-ip-pool stop 192.168.1.10
snat
set nat source rule 100 outbound-interface ‘eth0’
set nat source rule 100 source address ‘192.168.1.0/24’
set nat source rule 100 translation address ‘masquerade’