pppoe pass through

老腊肉泡酒 2008-11-04 03:53:47
请问一下。最近我在做pppoe pass through 的东西。可是我发现PC在pppoe建立连接的时候有关的PPP LCP包都收不到。

有哪位大侠给点建议。谢谢了。
...全文
239 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
jiura 2008-11-10
  • 打赏
  • 举报
回复
看过代码,但没做过。

在dev.c里面做个类似NAT的过程。
linux_is_perfect 2008-11-05
  • 打赏
  • 举报
回复
sf? 我不会,下面的人会的给点意见吧
/ip address add address=192.168.0.254/255.255.255.0 interface=ether1 comment=lan /ip dns set primary-dns=202.96.209.5 secondary-dns=202.96.209.133 allow-remote-requests=yes /ip firewall mangle add chain=forward protocol=tcp tcp-flags=syn action=change-mss new-mss=1440 /interface pppoe-client add name="pppoe-out1" interface=ether2 user="ad5712345" password="1111111" add-default-route=no disabled=no /interface pppoe-client enable pppoe-out1 /ip address add address=58.58.58.1/32 interface=pppoe-out1 comment="1" /ip route add gateway=58.58.58.1 routing-mark=1 comment="1" /ip firewall mangle add chain=prerouting in-interface=ether1 connection-state=new nth=1,1,0 action=mark-connection new-connection-mark=1 passthrough=yes disabled=no /ip firewall mangle add chain=prerouting in-interface=ether1 connection-mark=1 action=mark-routing new-routing-mark=1 passthrough=no disabled=no /ip firewall nat add chain=srcnat connection-mark=1 action=src-nat to-addresses=58.58.58.1 to-ports=0-65535 comment="1" disabled=no /interface pppoe-client add name="pppoe-out2" interface=ether3 user="ad0012345" password="222222" add-default-route=no disabled=no /interface pppoe-client enable pppoe-out2 /ip address add address=58.58.58.2/32 interface=pppoe-out2 comment="2" /ip route add gateway=58.58.58.2 routing-mark=2 comment="2" /ip firewall mangle add chain=prerouting in-interface=ether1 connection-state=new nth=1,1,1 action=mark-connection new-connection-mark=2 passthrough=yes disabled=no /ip firewall mangle add chain=prerouting in-interface=ether1 connection-mark=2 action=mark-routing new-routing-mark=2 passthrough=no disabled=no /ip firewall nat add chain=srcnat connection-mark=2 action=src-nat to-addresses=58.58.58.2 to-ports=0-65535 comment="2" disabled=no

21,619

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 驱动开发/核心开发
社区管理员
  • 驱动开发/核心开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧