V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  Autonomous  ›  全部回复第 85 页 / 共 170 页
回复总数  3384
1 ... 81  82  83  84  85  86  87  88  89  90 ... 170  
❮ ❯
Vaultwarden 用户表示无感。
2022 年 6 月 5 日
回复了 luchengdst 创建的主题 › UBNT › Edge OS 开启 IPv6
假设 WAN 口在 eth0 ,运营商给的前缀长度是 60 ,可以配成 DHCPv6-stateless ,记得把防火墙规则给写了:

```

configure
# Configure the PPPoE for IPv6(eth0):
set interfaces ethernet eth0 pppoe 0 ipv6 enable
set interfaces ethernet eth0 pppoe 0 ipv6 address autoconf
set interfaces ethernet eth0 pppoe 0 ipv6 dup-addr-detect-transmits 1
set interfaces ethernet eth0 pppoe 0 dhcpv6-pd pd 0 prefix-length /60
set interfaces ethernet eth0 pppoe 0 dhcpv6-pd rapid-commit enable
set interfaces ethernet eth0 pppoe 0 dhcpv6-pd prefix-only

# Enable IPv6 DHCPv6-stateless on the LAN(switch0):
set interfaces ethernet eth0 pppoe 0 dhcpv6-pd pd 0 interface switch0 host-address ::1
set interfaces ethernet eth0 pppoe 0 dhcpv6-pd pd 0 interface switch0 prefix-id :0
set interfaces ethernet eth0 pppoe 0 dhcpv6-pd pd 0 interface switch0 service dhcpv6-stateless

# Enable IPv6 on switch0:
set interfaces switch switch0 ipv6 dup-addr-detect-transmits 1
set interfaces switch switch0 ipv6 router-advert cur-hop-limit 64
set interfaces switch switch0 ipv6 router-advert link-mtu 0
set interfaces switch switch0 ipv6 router-advert managed-flag false
set interfaces switch switch0 ipv6 router-advert max-interval 600
set interfaces switch switch0 ipv6 router-advert other-config-flag false
set interfaces switch switch0 ipv6 router-advert prefix '::/64' autonomous-flag true
set interfaces switch switch0 ipv6 router-advert prefix '::/64' on-link-flag true
set interfaces switch switch0 ipv6 router-advert prefix '::/64' valid-lifetime 259200
set interfaces switch switch0 ipv6 router-advert reachable-time 0
set interfaces switch switch0 ipv6 router-advert retrans-timer 0
set interfaces switch switch0 ipv6 router-advert send-advert true

# create a policy for WAN->Router:
set firewall ipv6-name WANv6_LOCAL default-action drop
set firewall ipv6-name WANv6_LOCAL description 'Local network traffic'
set firewall ipv6-name WANv6_LOCAL enable-default-log
set firewall ipv6-name WANv6_LOCAL rule 10 action accept
set firewall ipv6-name WANv6_LOCAL rule 10 description 'Allow established/related sessions'
set firewall ipv6-name WANv6_LOCAL rule 10 state established enable
set firewall ipv6-name WANv6_LOCAL rule 10 state related enable
set firewall ipv6-name WANv6_LOCAL rule 20 action drop
set firewall ipv6-name WANv6_LOCAL rule 20 description 'Drop invalid state'
set firewall ipv6-name WANv6_LOCAL rule 20 state invalid enable
set firewall ipv6-name WANv6_LOCAL rule 30 action accept
set firewall ipv6-name WANv6_LOCAL rule 30 description 'Allow IPv6 icmp'
set firewall ipv6-name WANv6_LOCAL rule 30 protocol icmpv6
set firewall ipv6-name WANv6_LOCAL rule 40 action accept
set firewall ipv6-name WANv6_LOCAL rule 40 description 'allow dhcpv6'
set firewall ipv6-name WANv6_LOCAL rule 40 destination port 546
set firewall ipv6-name WANv6_LOCAL rule 40 protocol udp
set firewall ipv6-name WANv6_LOCAL rule 40 source port 547

# create a policy for WAN->LAN Clients:
set firewall ipv6-name WANv6_IN default-action drop
set firewall ipv6-name WANv6_IN description 'WAN inbound traffic to the router'
set firewall ipv6-name WANv6_IN enable-default-log
set firewall ipv6-name WANv6_IN rule 10 action accept
set firewall ipv6-name WANv6_IN rule 10 description 'Allow established/related sessions'
set firewall ipv6-name WANv6_IN rule 10 state established enable
set firewall ipv6-name WANv6_IN rule 10 state related enable
set firewall ipv6-name WANv6_IN rule 20 action drop
set firewall ipv6-name WANv6_IN rule 20 description 'Drop invalid state'
set firewall ipv6-name WANv6_IN rule 20 state invalid enable
set firewall ipv6-name WANv6_IN rule 30 action accept
set firewall ipv6-name WANv6_IN rule 30 description 'Allow IPv6 icmp'
set firewall ipv6-name WANv6_IN rule 30 protocol icmpv6
set firewall ipv6-name WANv6_IN rule 40 action accept
set firewall ipv6-name WANv6_IN rule 40 description 'allow dhcpv6'
set firewall ipv6-name WANv6_IN rule 40 destination port 546
set firewall ipv6-name WANv6_IN rule 40 protocol udp
set firewall ipv6-name WANv6_IN rule 40 source port 547
set firewall ipv6-receive-redirects disable
set firewall ipv6-src-route disable
set interfaces ethernet eth0 pppoe 0 firewall in ipv6-name WANv6_IN
set interfaces ethernet eth0 pppoe 0 firewall local ipv6-name WANv6_LOCAL

commit
save
exit


```
2022 年 6 月 4 日
回复了 cloverzrg2 创建的主题 › 深圳 › 你们深圳消费券买啥(京东)
@f360family123 +1 ,也买了个朗科固态,给 UniFi CloudKey 用
2022 年 5 月 31 日
回复了 hotcool100 创建的主题 › 问与答 › 最近买了套房子,现在是置换房产的好时机吗?
通勤感觉会很累
2022 年 5 月 27 日
回复了 xiaoyuge 创建的主题 › 宽带症候群 › 运营商 DNS 将 GitHub 指向的本地
用阿里公共 DNS
2022 年 5 月 27 日
回复了 Davic1 创建的主题 › 问与答 › 真·全币种信用卡 和 伪·全币种信用卡
工行 VISA 多币种卡用户表示,征信一大片,但是丝毫不影响办理房贷。
2022 年 5 月 20 日
回复了 sickoo 创建的主题 › macOS › 2022 年了,多少在用 safari?
Safari 主力,Chrome 辅助
2022 年 5 月 17 日
回复了 id7368 创建的主题 › 优惠信息 › 数字人民币活动: 8~80 元无门槛消费券 纯羊毛
10 块,不知道买啥
2022 年 5 月 17 日
回复了 asuraa 创建的主题 › NAS › ups 最近老是自动断电
bk650 啊,这玩意基本就是 3 年电池坏,正常,换电池吧
2022 年 5 月 17 日
回复了 zx9481 创建的主题 › 问与答 › 说说自己买过最满意的电子产品吧
MacBook Pro (15-inch, 2016)
iPad Pro 12.9 4th Generation
Synology DS918+ 8GB
Logitech MX Anywhere 2S
Ubnt Edgerouter X

下一步打算把 Huawei 手机换成 iPhone
obsidian
@Rain520 价格挺好,但是我们单位那强制要求用国产电脑,那麒麟系统安装的百度云盘居然不支持同步功能,太遗憾了
百度网盘的……超年龄了
2022 年 5 月 9 日
回复了 adronking 创建的主题 › 宽带症候群 › 支持五速的万兆交换机有两千以内的吗?大佬们
推荐 Mikrotik CRS309-1G-8+ ,有 1 个千兆 RJ-45 口,8 个万兆 SFP+口。成本可以控制在 2K 以内,我在用这个
2022 年 5 月 9 日
回复了 sevian 创建的主题 › 宽带症候群 › 200 平+全屋覆盖组网方案分享
很想知道楼主的 USG 放弱电箱里面,关门后散热好不好
2022 年 5 月 8 日
回复了 duvet 创建的主题 › 问与答 › 为什么局域网内的机器会 ping 不通?
有很多情况,比如:
vlan 划分+ACL 规则限制
端口隔离
2022 年 5 月 8 日
回复了 VincentYoung 创建的主题 › iCloud › iCloud 免费升级到 4T 了?
5G 没变
2022 年 5 月 4 日
回复了 bl5c 创建的主题 › 宽带症候群 › 2022 了,光猫桥接,路由器拨号算好习惯还是臭毛病
当然是要把光猫桥接,光猫那弱鸡性能就不应该工作在路由模式
2022 年 5 月 3 日
回复了 79lawyer 创建的主题 › 上海 › 在上海的 V 友们有因为疫情影响到工资的吗
@outoftimeerror 良心公司啊!
2022 年 5 月 2 日
回复了 x97bgt 创建的主题 › 程序员 › 如果突然遭遇意外,怎么把数字资产移交给亲属?
想到我那几十个 G 的涩图,还是不要移交比较好
1 ... 81  82  83  84  85  86  87  88  89  90 ... 170  
❮ ❯
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3358 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 47ms · UTC 13:15 · PVG 21:15 · LAX 06:15 · JFK 09:15
♥ Do have faith in what you're doing.