Hello everyone, I got a issue here.
First, my topology is like the following pic.
The gargoyle router IP is 192.168.11.1, the wan's ifname is eth1.
The ADSL Modem is already set to bridge mode, disabled the DHCP server function, thus it acts like a Switch.
Gargoye Router is already set to PPPoE dial mode, enabled the DHCP server function and DNS function, and the PPPoE dial is always success.
Because the router only has 1 lan port, and for some reason my wired PC have to connect the modem's lan port .
The issue is , wired PC got the default gateway 192.168.11.x, not 192.168.11.1, and got dns 192.168.168.11.x.
I know if the wan protocol set to dhcp ,it must cause issue because the LAN will loop. But I already set the wan protocol to pppoe, then the wan should not send dhcp request .
I know I can set the PC to static ip and static gateway and dns, but it is not the best way to solve the issue.
And the routing table proves it
I tried edit the firewall reject wan dest_port udp 67-68, no luck. Manually delete the eth1 routes , no luck.......
I just want the wan only use pppoe protocol, don't act like a dhcp cilent.
How should I fix this, thank you!
PPPoE wan routing issue
Moderator: Moderators
Re: PPPoE wan routing issue
Ok, I found the answer.
just edit the file gargoyle_firewall_util.sh in /usr/lib/gargoyle_firewall_util
and find the command line
initialize_firewall()
{
iptables -I zone_lan_forward -i br-lan -o br-lan -j ACCEPT
insert_remote_accept_rules
insert_dmz_rule
create_l7marker_chain
block_static_ip_mismatches
force_router_dns
add_adsl_modem_routes
}
just comment #add_adsl_modem_routes this line out, the wan will not obtain ip .
Errrrr... if the wan down and up, pppoe auto re-dial again, the eth1 got ip 192.168.11.x again, how would that be ?
just edit the file gargoyle_firewall_util.sh in /usr/lib/gargoyle_firewall_util
and find the command line
initialize_firewall()
{
iptables -I zone_lan_forward -i br-lan -o br-lan -j ACCEPT
insert_remote_accept_rules
insert_dmz_rule
create_l7marker_chain
block_static_ip_mismatches
force_router_dns
add_adsl_modem_routes
}
just comment #add_adsl_modem_routes this line out, the wan will not obtain ip .

Errrrr... if the wan down and up, pppoe auto re-dial again, the eth1 got ip 192.168.11.x again, how would that be ?