Chain outbound

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Good afternoon,

How would one force all traffic out of a particular interface? I am trying to force all traffic out of a vpn interface but I'm not having any luck - if I change the default policy from accept to drop and try this block below I get nothing :/

chain output {
                type filter hook output priority 0; policy drop;
                counter
                oif { lo, tun0 } accept
                oif { enp3s0f1, wlp2s0 } ip daddr 192.168.0.0/24 accept
                oif { enp3s0f1, wlp2s0 } drop
                oif { vmnet8 } accept

}

Can I do what I'm trying to do with nftables or should I toss it and go back to iptables?

Thanks,

Paul




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux