Policy Based Routing: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „*iptables -A PREROUTING -t mangle -p icmp -j MARK --set-mark 2 *ip rule add fwmark 2 table 2 *ip route add default table 2 via 192.168.255.3“) |
|||
Zeile 1: | Zeile 1: | ||
*iptables -A PREROUTING -t mangle -p icmp -j MARK --set-mark 2 | *iptables -A PREROUTING -t mangle -p icmp -j MARK --set-mark 2 | ||
− | *ip rule add fwmark 2 table | + | *ip rule add fwmark 2 table 212 |
− | *ip route add default table | + | *ip route add default table 212 via 192.168.255.3 |
+ | |||
+ | *https://linux-club.de/wiki/opensuse/Policy_Based_Routing |
Version vom 18. Juli 2018, 10:25 Uhr
- iptables -A PREROUTING -t mangle -p icmp -j MARK --set-mark 2
- ip rule add fwmark 2 table 212
- ip route add default table 212 via 192.168.255.3