看板 Linux 關於我們 聯絡資訊
請教一下前輩 我網路卡有二張eth0 & eth1 我有辦法設定user 1只使用eth0,然後user 2只使用eth1嗎? 感謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 220.130.45.196 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1654675607.A.521.html
tomsawyer: Iptables可以設定user namespace 06/08 20:11
changchichun: 好特別的應用,還真的有解法? 嘖嘖 06/09 10:30
obarisk: 不用 iptables,用 ip rule 配合 route 就可以了 06/10 06:57
obarisk: 一張網卡也可以透過 macvlan 做到 06/10 07:13
obarisk: iptables/nftables 就得透過追蹤 uid 做了 06/10 07:15
kenduest: 應該要先問上面那種情境需求是什麼? 06/10 15:37
kenduest: 要區分網路介面,也許你應該是把環境切開就好 06/10 15:39