Comments (7)
FwMark: https://github.com/heiher/natmap/releases/tag/20240519-next
可以通过-f <mark>
参数指定fwmark,fwmark会作用于STUN/HTTP的对外访问。如果系统环境配置了策略路由或基于防火墙的透明代理,可在较早阶段通过匹配fwmark
跳出。比如:
natmap -s stunserver.stunprotocol.org -h qq.com -f 0x123
# IPTables
iptables -t mangle -I OUTPUT -m mark --mark 0x123 -j RETURN
# Policy-routing
ip rule add fwmark 0x123 table main pref 1
from natmap.
@heiher
-f
参数值不带 0x,却是16进制,并且usage中也没有说明,是否不太好?建议在 usage 中说明,并在文档中都加上 0x。
确实不太好。现在改成了接受多种进制数的fwmark
值,并在usage中举例说明:
- hex: 0x1
- dec: 1
- oct: 01
感谢建议~
from natmap.
建议
strtoul()
的 base 使用0
就好了,和 iptables 一致
谢谢,已经改成这样了哈
from natmap.
这应该是需要让防火墙或策略路由中的Clash规则排除掉NATMap要访问的STUN和HTTP服务器地址。
我将会给NATMap增加一个参数用于指定fwmark
,以便于在防火墙和策略路由中对NATMap发出的报文进行匹配。
from natmap.
@heiher -f
参数值不带 0x,却是16进制,并且usage中也没有说明,是否不太好?建议在 usage 中说明,并在文档中都加上 0x。
from natmap.
建议 strtoul()
的 base 使用 0
就好了,和 iptables 一致
from natmap.
在clash里把打洞服务器地址去除 或者把地址设置成直连
from natmap.
Related Issues (20)
- IP4P版的FRPC无法正常解析IP4P地址 HOT 7
- 咨询一下启动以后有没有日志记录外网ip和端口? HOT 5
- Operation in progress什么鬼报错
- 不知道怎么给wiki提pr,大佬看下能不能更新下wiki上关于ssh的说明 HOT 2
- How about creating the docker image for NATMap?
- 问一个非常弱智的问题 HOT 5
- 在Android上执行时发生了错误 HOT 7
- Origin rule无法完成 HOT 4
- [Feature Request] iptables / nftables forwarding HOT 6
- How does stun - http work? HOT 1
- tcp和udp能否共存? HOT 7
- 添加docker支持 HOT 5
- ssh断开连接问题 HOT 4
- 网络变动后故障 HOT 3
- ddns via cloudflare HOT 1
- 希望能增加参数,不要错误日志,或者把日志写入文件。 HOT 3
- notification scripts can be run manually, but natmap cannot
- 请求在wireguard安卓客户端增加TXT记录解析 HOT 7
- 是否可以增加个先行脚本参数呢 例如-e 带的脚本 HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from natmap.