找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
楼主: LGA1150

[12/8更新]OpenWrt 上实现 NAT1 (Full cone NAT) 的方法,无需 DMZ/UPnP

 火... [复制链接]
发表于 2018-9-3 07:13 | 显示全部楼层
写了个感觉没什么用的luci
https://github.com/505575853/luci-app-fullconenat
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-9-3 08:12 来自手机 | 显示全部楼层
tinnlux 发表于 2018-9-3 01:41
手动添加防火墙规则和看了之前说的让规则在最后启动也不行。还是nat3。编译了一个备用路由的固件测试是nat1 ...

确认没有 MASQUERADE 规则,那就是 fastpath 的问题了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-9-3 08:23 来自手机 | 显示全部楼层
tinnlux 发表于 2018-9-3 01:39
内核版本一致,我转们git到跟现有固件一个内核的分支,是3.8.45。编译也没报错都成功了,甚至还编出了固 ...

fw3 问题,我只在 18.06 测试过。要么你同步到 18.06 所用 fw3 版本,要么自行修改补丁

点评

如何把18.06的包版本移到15.05上我完全不会,等有空研究研究吧  详情 回复 发表于 2018-9-3 09:01
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-9-3 09:01 | 显示全部楼层
LGA1150 发表于 2018-9-3 08:23
fw3 问题,我只在 18.06 测试过。要么你同步到 18.06 所用 fw3 版本,要么自行修改补丁

如何把18.06的包版本移到15.05上我完全不会,等有空研究研究吧
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-9-3 10:01 | 显示全部楼层
2018-07-26 cc版的firewall编译出来了。。补丁也能打上。。试试能行不
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-9-3 10:14 | 显示全部楼层
cc源码下编译最新的firewall,分别未打补丁和打补丁都编译了一份,未打补丁通过自定义规则未起作用,打补丁的直接无法上网。不会找原因。。

点评

你没打 fastpath 补丁是不能运行的  详情 回复 发表于 2018-9-3 11:01
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-9-3 11:01 | 显示全部楼层
tinnlux 发表于 2018-9-3 10:14
cc源码下编译最新的firewall,分别未打补丁和打补丁都编译了一份,未打补丁通过自定义规则未起作用,打补丁 ...

你没打 fastpath 补丁是不能运行的

点评

打fastpash补丁需要编译整个固件了吧。。我没有wifi驱动编译出来就变有线路由了。。  详情 回复 发表于 2018-9-3 11:21
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-9-3 11:21 | 显示全部楼层
LGA1150 发表于 2018-9-3 11:01
你没打 fastpath 补丁是不能运行的

打fastpash补丁需要编译整个固件了吧。。我没有wifi驱动编译出来就变有线路由了。。

点评

不,在打了 fastpath 补丁的前提下编译这个模块  详情 回复 发表于 2018-9-3 11:32
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-9-3 11:32 | 显示全部楼层
tinnlux 发表于 2018-9-3 11:21
打fastpash补丁需要编译整个固件了吧。。我没有wifi驱动编译出来就变有线路由了。。

不,在打了 fastpath 补丁的前提下编译这个模块

点评

哦!明白了。我试试去,但这个补丁我看不太懂怎么打。。  详情 回复 发表于 2018-9-3 11:51
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-9-3 11:51 | 显示全部楼层
本帖最后由 tinnlux 于 2018-9-3 11:53 编辑
LGA1150 发表于 2018-9-3 11:32
不,在打了 fastpath 补丁的前提下编译这个模块

哦!明白了。我试试去,但这个补丁我看不太懂怎么打。。我看补丁上写的内核是4.14的,我的固件是3.18的,需要改补丁内容才能行吗?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-9-3 12:10 | 显示全部楼层
加fastpath补丁报错,我看不懂。。:
Applying patch generic/952-net-conntrack-events-support-multiple-registrant.patch
patching file include/net/netfilter/nf_conntrack_ecache.h
Hunk #1 succeeded at 63 (offset -8 lines).
Hunk #2 succeeded at 75 with fuzz 2 (offset -8 lines).
Hunk #3 succeeded at 81 (offset -10 lines).
Hunk #4 FAILED at 111.
Hunk #5 FAILED at 122.
2 out of 5 hunks FAILED -- rejects in file include/net/netfilter/nf_conntrack_ecache.h
patching file include/net/netns/conntrack.h
Hunk #1 succeeded at 101 with fuzz 1 (offset -13 lines).
patching file net/netfilter/Kconfig
Hunk #1 succeeded at 118 with fuzz 2.
patching file net/netfilter/nf_conntrack_core.c
Hunk #1 succeeded at 1800 (offset -367 lines).
patching file net/netfilter/nf_conntrack_ecache.c
Hunk #2 FAILED at 120.
Hunk #3 FAILED at 174.
Hunk #4 succeeded at 168 with fuzz 1 (offset -60 lines).
Hunk #5 succeeded at 171 with fuzz 2 (offset -90 lines).
Hunk #6 succeeded at 197 (offset -90 lines).
Hunk #7 succeeded at 218 with fuzz 2 (offset -91 lines).
2 out of 7 hunks FAILED -- rejects in file net/netfilter/nf_conntrack_ecache.c
patching file net/netfilter/nf_conntrack_netlink.c
Hunk #2 FAILED at 623.
Hunk #3 succeeded at 3090 (offset -205 lines).
1 out of 3 hunks FAILED -- rejects in file net/netfilter/nf_conntrack_netlink.c
Patch generic/952-net-conntrack-events-support-multiple-registrant.patch does not apply (enforce with -f)
make[4]: *** [/home/tinnlux/chaos_calmer/build_dir/target-mipsel_1004kc+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/linux-3.18.45/.quilt_checked] Error 1
make[4]: Leaving directory `/home/tinnlux/chaos_calmer/target/linux/ramips'
make[3]: *** [compile] Error 2
make[3]: Leaving directory `/home/tinnlux/chaos_calmer/target/linux'
make[2]: *** [target/linux/compile] Error 2
make[2]: Leaving directory `/home/tinnlux/chaos_calmer'
make[1]: *** [/home/tinnlux/chaos_calmer/staging_dir/target-mipsel_1004kc+dsp_uClibc-0.9.33.2/stamp/.target_compile] Error 2
make[1]: Leaving directory `/home/tinnlux/chaos_calmer'
make: *** [world] 错误 2

点评

内核版本也要匹配 cc 用这个 http://jg192.f3322.net:82/source/Fast-Path-LEDE-OpenWRT/15.05.1/895-patch-kernel-support-SFE.patch  详情 回复 发表于 2018-9-3 12:29
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-9-3 12:29 | 显示全部楼层
tinnlux 发表于 2018-9-3 12:10
加fastpath补丁报错,我看不懂。。:
Applying patch generic/952-net-conntrack-events-support-multiple ...

内核版本也要匹配
cc 用这个 http://jg192.f3322.net:82/source ... l-support-SFE.patch

点评

哇!老哥你真的厉害,开班吗收徒吗  详情 回复 发表于 2018-9-3 12:54
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-9-3 12:54 | 显示全部楼层
本帖最后由 tinnlux 于 2018-9-3 13:02 编辑

哇!老哥你真的厉害,开班吗收徒吗
但我编译时还是有一个错误:
Applying patch generic/895-patch-kernel-support-SFE.patch
patching file include/linux/if_bridge.h
patching file include/linux/skbuff.h
Hunk #1 succeeded at 597 (offset -1 lines).
patching file include/net/netfilter/nf_conntrack_ecache.h
patching file include/net/netns/conntrack.h
patching file net/bridge/br_if.c
patching file net/core/dev.c
Hunk #1 succeeded at 2620 (offset -6 lines).
Hunk #2 succeeded at 3616 (offset -7 lines).
Hunk #3 succeeded at 3646 (offset -7 lines).
Hunk #4 succeeded at 3673 (offset -7 lines).
patching file net/netfilter/nf_conntrack_core.c
Hunk #1 succeeded at 1800 (offset 20 lines).
patching file net/netfilter/nf_conntrack_ecache.c
Hunk #3 FAILED at 139.
1 out of 3 hunks FAILED -- rejects in file net/netfilter/nf_conntrack_ecache.c
patching file net/netfilter/nf_conntrack_netlink.c
Hunk #2 succeeded at 607 (offset -2 lines).
Hunk #3 succeeded at 3088 (offset -4 lines).
Patch generic/895-patch-kernel-support-SFE.patch does not apply (enforce with -f)
make[4]: *** [/home/tinnlux/chaos_calmer/build_dir/target-mipsel_1004kc+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/linux-3.18.45/.quilt_checked] Error 1
make[4]: Leaving directory `/home/tinnlux/chaos_calmer/target/linux/ramips'
make[3]: *** [compile] Error 2
make[3]: Leaving directory `/home/tinnlux/chaos_calmer/target/linux'
make[2]: *** [target/linux/compile] Error 2
make[2]: Leaving directory `/home/tinnlux/chaos_calmer'
make[1]: *** [/home/tinnlux/chaos_calmer/staging_dir/target-mipsel_1004kc+dsp_uClibc-0.9.33.2/stamp/.target_compile] Error 2
make[1]: Leaving directory `/home/tinnlux/chaos_calmer'
make: *** [world] 错误 2


点评

3.18.45? 看这里 http://jg192.f3322.net:82/wordpress/index.php/2017/09/16/fast-path%E5%8A%A0%E9%80%9F%E8%A1%A5%E4%B8%81-for-openwrt-cc-15-05-1kernel-3-18-23/  详情 回复 发表于 2018-9-3 13:47
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-9-3 13:47 | 显示全部楼层
本帖最后由 LGA1150 于 2018-9-3 13:49 编辑
tinnlux 发表于 2018-9-3 12:54
哇!老哥你真的厉害,开班吗收徒吗
但我编译时还是有一个错误:
Applying patch generic/8 ...

3.18.45?
看这里 http://jg192.f3322.net:82/wordpr ... 05-1kernel-3-18-23/
注意只要 patch 就行了,不用编译 fastpath 的 kmod

点评

哦哦,就是说把patch放到位置然后单独编译fullcone吗?我试试  详情 回复 发表于 2018-9-3 14:01
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-9-3 14:01 | 显示全部楼层
LGA1150 发表于 2018-9-3 13:47
3.18.45?
看这里 http://jg192.f3322.net:82/wordpr ... 05-1kernel-3-18-23/
注意只要 patch 就行了 ...

哦哦,就是说把patch放到位置然后单独编译fullcone吗?我试试
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-19 00:59

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表