snat with dynamic ip address

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

 



I have the following table within a NFTables rule set, but the address
given below (192.168.1.213) is assigned via DHCP and will change from
time to time.   How should I rewrite that line to do SNAT using whatever
the current IPv4 address happens to be at the moment?

/Lars

table ip nat {
        chain postrouting {
                type nat hook postrouting priority srcnat; policy accept;
                ip saddr 172.16.3.0/24 oif "wlan0" snat to 192.168.1.213
        }
}





[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