在以往的教程中。是对本地网卡进行新连接标记。然后再进行mark router的。而PPPOE后。
新连接不再是本地连接,而是pppoe-user的连接。所以请改用下面的脚本进行重新设置。
A chain=prerouting src-address=172.168.124.2-172.168.124.254
connection-state=new nth=2,1,0 action=mark-connection
new-connection-mark=1 passthrough=yes
B chain=prerouting src-address=192.168.123.2-192.168.123.254
connection-mark=1 action=mark-routing new-routing-mark=1 passthrough=no
C chain=prerouting src-address=192.168.124.2-192.168.123.254
connection-state=new nth=2,1,1 action=mark-connection
new-connection-mark=2 passthrough=yes
D chain=prerouting src-address=192.168.123.2-192.168.123.254
connection-mark=2 action=mark-routing new-routing-mark=2 passthrough=no
Echain=prerouting src-address=172.168.124.2-172.168.124.254
connection-state=new nth=2,1,2 action=mark-connection
new-connection-mark=3 passthrough=yes
F chain=prerouting src-address=172.168.124.2-172.168.124.254
connection-mark=3 action=mark-routing new-routing-mark=3 passthrough=no
172.168.124.2-172.168.124.254为PPPOE拨号后得到的IP地址。请改为你自己PPPOE拨号后的客户端IP。
新连接不再是本地连接,而是pppoe-user的连接。所以请改用下面的脚本进行重新设置。
A chain=prerouting src-address=172.168.124.2-172.168.124.254
connection-state=new nth=2,1,0 action=mark-connection
new-connection-mark=1 passthrough=yes
B chain=prerouting src-address=192.168.123.2-192.168.123.254
connection-mark=1 action=mark-routing new-routing-mark=1 passthrough=no
C chain=prerouting src-address=192.168.124.2-192.168.123.254
connection-state=new nth=2,1,1 action=mark-connection
new-connection-mark=2 passthrough=yes
D chain=prerouting src-address=192.168.123.2-192.168.123.254
connection-mark=2 action=mark-routing new-routing-mark=2 passthrough=no
Echain=prerouting src-address=172.168.124.2-172.168.124.254
connection-state=new nth=2,1,2 action=mark-connection
new-connection-mark=3 passthrough=yes
F chain=prerouting src-address=172.168.124.2-172.168.124.254
connection-mark=3 action=mark-routing new-routing-mark=3 passthrough=no
172.168.124.2-172.168.124.254为PPPOE拨号后得到的IP地址。请改为你自己PPPOE拨号后的客户端IP。