{"id":81265,"date":"2020-05-12T01:42:43","date_gmt":"2020-05-11T23:42:43","guid":{"rendered":"https:\/\/prohoster.info\/blog\/administrirovanie\/bystryj-routing-i-nat-v-linux"},"modified":"2020-05-12T01:42:43","modified_gmt":"2020-05-11T23:42:43","slug":"bystryj-routing-i-nat-v-linux","status":"publish","type":"post","link":"https:\/\/prohoster.info\/kk\/blog\/administrirovanie\/bystryj-routing-i-nat-v-linux","title":{"rendered":"Linux \u0436\u04af\u0439\u0435\u0441\u0456\u043d\u0434\u0435\u0433\u0456 \u0436\u044b\u043b\u0434\u0430\u043c \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0436\u04d9\u043d\u0435 NAT","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>IPv4 \u043c\u0435\u043a\u0435\u043d\u0436\u0430\u0439\u043b\u0430\u0440\u044b \u0442\u0430\u0443\u0441\u044b\u043b\u0430 \u0431\u0430\u0441\u0442\u0430\u0493\u0430\u043d \u043a\u0435\u0437\u0434\u0435 \u043a\u04e9\u043f\u0442\u0435\u0433\u0435\u043d \u0431\u0430\u0439\u043b\u0430\u043d\u044b\u0441 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043b\u0430\u0440\u044b \u043a\u043b\u0438\u0435\u043d\u0442\u0442\u0435\u0440\u0456\u043d\u0456\u04a3 \u0436\u0435\u043b\u0456\u0433\u0435 \u049b\u043e\u043b\u0436\u0435\u0442\u0456\u043c\u0434\u0456\u043b\u0456\u0433\u0456\u043d \u043c\u0435\u043a\u0435\u043d\u0436\u0430\u0439\u043b\u0430\u0440\u0434\u044b \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044f\u043b\u0430\u0443 \u0430\u0440\u049b\u044b\u043b\u044b \u04b1\u0439\u044b\u043c\u0434\u0430\u0441\u0442\u044b\u0440\u0443\u0493\u0430 \u043c\u04d9\u0436\u0431\u04af\u0440 \u0431\u043e\u043b\u0434\u044b. \u0411\u04b1\u043b \u043c\u0430\u049b\u0430\u043b\u0430\u0434\u0430 \u049b\u0430\u0440\u0430\u043f\u0430\u0439\u044b\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u043b\u0435\u0440\u0434\u0435 Carrier Grade NAT \u0434\u0435\u04a3\u0433\u0435\u0439\u0456\u043d\u0434\u0435\u0433\u0456 \u04e9\u043d\u0456\u043c\u0434\u0456\u043b\u0456\u043a\u043a\u0435 \u049b\u0430\u043b\u0430\u0439 \u049b\u043e\u043b \u0436\u0435\u0442\u043a\u0456\u0437\u0443\u0433\u0435 \u0431\u043e\u043b\u0430\u0442\u044b\u043d\u044b\u043d \u0430\u0439\u0442\u0430\u043c\u044b\u043d.<br \/>\n<noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><\/p>\n<h3>\u0422\u0430\u0440\u0438\u0445\u049b\u0430 \u0430\u0437\u0434\u0430\u043f \u0448\u043e\u043b\u0443<\/h3>\n<p>\nIPv4 \u043c\u0435\u043a\u0435\u043d\u0436\u0430\u0439 \u043a\u0435\u04a3\u0456\u0441\u0442\u0456\u0433\u0456\u043d\u0456\u04a3 \u0442\u0430\u0443\u0441\u044b\u043b\u0443\u044b \u2014 \u0436\u0430\u04a3\u0430 \u0442\u0430\u049b\u044b\u0440\u044b\u043f \u0435\u043c\u0435\u0441. \u0411\u0456\u0440 \u043a\u0435\u0437\u0434\u0435 RIPE-\u0434\u0435 \u043a\u04af\u0442\u0443 \u0442\u0456\u0437\u0456\u043c\u0434\u0435\u0440\u0456 \u043f\u0430\u0439\u0434\u0430 \u0431\u043e\u043b\u0434\u044b, \u043a\u0435\u0439\u0456\u043d \u043c\u0435\u043a\u0435\u043d\u0436\u0430\u0439 \u0431\u043b\u043e\u043a\u0442\u0430\u0440\u044b \u0441\u0430\u0442\u044b\u043b\u044b\u043f, \u0436\u0430\u043b\u0493\u0430 \u0431\u0435\u0440\u0456\u043b\u0435\u0442\u0456\u043d \u0441\u0430\u0443\u0434\u0430 \u0430\u043b\u0430\u04a3\u0434\u0430\u0440\u044b \u0436\u04b1\u043c\u044b\u0441 \u0456\u0441\u0442\u0435\u0439 \u0431\u0430\u0441\u0442\u0430\u0434\u044b. \u0411\u0456\u0440\u0442\u0456\u043d\u0434\u0435\u043f \u0431\u0430\u0439\u043b\u0430\u043d\u044b\u0441 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043b\u0430\u0440\u044b \u043c\u0435\u043a\u0435\u043d\u0436\u0430\u0439\u043b\u0430\u0440 \u043c\u0435\u043d \u043f\u043e\u0440\u0442\u0442\u0430\u0440\u0434\u044b \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044f\u043b\u0430\u0443 \u0430\u0440\u049b\u044b\u043b\u044b \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u043a\u0435 \u049b\u043e\u043b\u0436\u0435\u0442\u0456\u043c\u0434\u0456\u043b\u0456\u043a \u049b\u044b\u0437\u043c\u0435\u0442\u0442\u0435\u0440\u0456\u043d \u04b1\u0441\u044b\u043d\u0430 \u0431\u0430\u0441\u0442\u0430\u0434\u044b. \u041a\u0435\u0439\u0431\u0456\u0440 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043b\u0430\u0440 \u04d9\u0440 \u0430\u0431\u043e\u043d\u0435\u043d\u0442\u043a\u0435 \u00ab\u0430\u049b\u00bb \u043c\u0435\u043a\u0435\u043d\u0436\u0430\u0439 \u0431\u0435\u0440\u0443\u0433\u0435 \u0436\u0435\u0442\u0435\u0442\u0456\u043d\u0434\u0435\u0439 \u043c\u0435\u043a\u0435\u043d\u0436\u0430\u0439 \u0430\u043b\u044b\u043f \u04af\u043b\u0433\u0435\u0440\u043c\u0435\u0434\u0456, \u0430\u043b \u0435\u043d\u0434\u0456 \u0431\u0456\u0440\u0435\u0443\u043b\u0435\u0440\u0456 \u049b\u0430\u0439\u0442\u0430\u043b\u0430\u043c\u0430 \u043d\u0430\u0440\u044b\u049b\u0442\u0430\u043d \u043c\u0435\u043a\u0435\u043d\u0436\u0430\u0439 \u0441\u0430\u0442\u044b\u043f \u0430\u043b\u043c\u0430\u0439, \u0448\u044b\u0493\u044b\u043d\u0434\u044b \u0430\u0437\u0430\u0439\u0442\u0443\u0434\u044b \u0436\u04e9\u043d \u043a\u04e9\u0440\u0434\u0456. \u0416\u0435\u043b\u0456\u043b\u0456\u043a \u0436\u0430\u0431\u0434\u044b\u049b \u04e9\u043d\u0434\u0456\u0440\u0443\u0448\u0456\u043b\u0435\u0440\u0456 \u0434\u0435 \u0431\u04b1\u043b \u04af\u0440\u0434\u0456\u0441\u0442\u0456 \u049b\u043e\u043b\u0434\u0430\u0434\u044b, \u04e9\u0439\u0442\u043a\u0435\u043d\u0456 \u043c\u04b1\u043d\u0434\u0430\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u04d9\u0434\u0435\u0442\u0442\u0435 \u049b\u043e\u0441\u044b\u043c\u0448\u0430 \u043a\u0435\u04a3\u0435\u0439\u0442\u0443 \u043c\u043e\u0434\u0443\u043b\u044c\u0434\u0435\u0440\u0456\u043d \u043d\u0435\u043c\u0435\u0441\u0435 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044f\u043b\u0430\u0440\u0434\u044b \u049b\u0430\u0436\u0435\u0442 \u0435\u0442\u0435\u0434\u0456. \u041c\u044b\u0441\u0430\u043b\u044b, Juniper MX \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u043b\u0430\u0440\u044b\u043d\u044b\u04a3 \u0436\u0435\u043b\u0456\u0441\u0456\u043d\u0434\u0435 (\u0441\u043e\u04a3\u0493\u044b MX104 \u0436\u04d9\u043d\u0435 MX204 \u04af\u043b\u0433\u0456\u043b\u0435\u0440\u0456\u043d\u0435\u043d \u0431\u0430\u0441\u049b\u0430) NAPT \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u0441\u044b\u043d \u0431\u04e9\u043b\u0435\u043a MS-MIC \u049b\u044b\u0437\u043c\u0435\u0442 \u043a\u0430\u0440\u0442\u0430\u0441\u044b\u043d\u0434\u0430 \u043e\u0440\u044b\u043d\u0434\u0430\u0443\u0493\u0430 \u0431\u043e\u043b\u0430\u0434\u044b. Cisco ASR1k \u04af\u0448\u0456\u043d CGN license \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044f\u0441\u044b, \u0430\u043b Cisco ASR9k \u04af\u0448\u0456\u043d A9K-ISM-100 \u043c\u043e\u0434\u0443\u043b\u0456 \u043c\u0435\u043d \u043e\u0493\u0430\u043d \u0430\u0440\u043d\u0430\u043b\u0493\u0430\u043d A9K-CGN-LIC \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044f\u0441\u044b \u049b\u0430\u0436\u0435\u0442. \u0416\u0430\u043b\u043f\u044b, \u043c\u04b1\u043d\u044b\u04a3 \u0431\u04d9\u0440\u0456 \u0430\u0440\u0437\u0430\u043d\u0493\u0430 \u0442\u04af\u0441\u043f\u0435\u0439\u0434\u0456.<\/p>\n<h3>IPTables<\/h3>\n<p>\nNAT \u043e\u0440\u044b\u043d\u0434\u0430\u0443 \u04af\u0448\u0456\u043d \u0430\u0440\u043d\u0430\u0439\u044b \u0435\u0441\u0435\u043f\u0442\u0435\u0443 \u0440\u0435\u0441\u0443\u0440\u0441\u0442\u0430\u0440\u044b \u049b\u0430\u0436\u0435\u0442 \u0435\u043c\u0435\u0441: \u0431\u04b1\u043b \u043c\u0456\u043d\u0434\u0435\u0442\u0442\u0456 \u043a\u0435\u0437 \u043a\u0435\u043b\u0433\u0435\u043d \u04af\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u044b\u043d\u0434\u0430 \u043e\u0440\u043d\u0430\u0442\u044b\u043b\u0430\u0442\u044b\u043d \u0436\u0430\u043b\u043f\u044b \u043c\u0430\u049b\u0441\u0430\u0442\u0442\u0430\u0493\u044b \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043b\u0430\u0440 \u0434\u0430 \u0430\u0442\u049b\u0430\u0440\u0430 \u0430\u043b\u0430\u0434\u044b. \u0411\u0430\u0439\u043b\u0430\u043d\u044b\u0441 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0430\u0443\u049b\u044b\u043c\u044b\u043d\u0434\u0430 \u0431\u04b1\u043b \u043c\u04d9\u0441\u0435\u043b\u0435\u043d\u0456 FreeBSD (ipfw\/pf) \u043d\u0435\u043c\u0435\u0441\u0435 GNU\/Linux (iptables) \u0436\u04af\u0439\u0435\u0441\u0456 \u043e\u0440\u043d\u0430\u0442\u044b\u043b\u0493\u0430\u043d \u049b\u0430\u0440\u0430\u043f\u0430\u0439\u044b\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u043b\u0435\u0440 \u0430\u0440\u049b\u044b\u043b\u044b \u0448\u0435\u0448\u0443\u0433\u0435 \u0431\u043e\u043b\u0430\u0434\u044b. FreeBSD \u0436\u04af\u0439\u0435\u0441\u0456\u043d \u049b\u0430\u0440\u0430\u0441\u0442\u044b\u0440\u043c\u0430\u0439\u043c\u044b\u0437, \u04e9\u0439\u0442\u043a\u0435\u043d\u0456 \u0431\u04b1\u043b \u041e\u0416-\u043d\u044b \u049b\u043e\u043b\u0434\u0430\u043d\u0443\u0434\u0430\u043d \u0431\u0456\u0440\u0430\u0437 \u0443\u0430\u049b\u044b\u0442 \u0431\u04b1\u0440\u044b\u043d \u0431\u0430\u0441 \u0442\u0430\u0440\u0442\u049b\u0430\u043d\u043c\u044b\u043d. \u0421\u043e\u043d\u0434\u044b\u049b\u0442\u0430\u043d GNU\/Linux \u0436\u04af\u0439\u0435\u0441\u0456\u043d\u0435 \u0442\u043e\u049b\u0442\u0430\u043b\u0430\u0439\u044b\u049b.<\/p>\n<p>\u041c\u0435\u043a\u0435\u043d\u0436\u0430\u0439 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044f\u0441\u044b\u043d \u049b\u043e\u0441\u0443 \u049b\u0438\u044b\u043d \u0435\u043c\u0435\u0441. \u0410\u043b\u0434\u044b\u043c\u0435\u043d iptables \u0456\u0448\u0456\u043d\u0434\u0435 nat \u043a\u0435\u0441\u0442\u0435\u0441\u0456\u043d\u0435 \u0435\u0440\u0435\u0436\u0435 \u049b\u043e\u0441\u0443 \u043a\u0435\u0440\u0435\u043a:<\/p>\n<pre><code class=\"bash\">iptables -t nat -A POSTROUTING -s 100.64.0.0\/10 -j SNAT --to - --persistent\n<\/code><\/pre>\n<p>\n\u041e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u043b\u044b\u049b \u0436\u04af\u0439\u0435 \u0431\u0430\u0440\u043b\u044b\u049b \u0431\u0435\u043b\u0441\u0435\u043d\u0434\u0456 \u049b\u043e\u0441\u044b\u043b\u044b\u043c\u0434\u0430\u0440\u0434\u044b \u0431\u0430\u049b\u044b\u043b\u0430\u043f, \u049b\u0430\u0436\u0435\u0442\u0442\u0456 \u0442\u04af\u0440\u043b\u0435\u043d\u0434\u0456\u0440\u0443\u043b\u0435\u0440\u0434\u0456 \u043e\u0440\u044b\u043d\u0434\u0430\u0439\u0442\u044b\u043d nf_conntrack \u043c\u043e\u0434\u0443\u043b\u0456\u043d \u0436\u04af\u043a\u0442\u0435\u0439\u0434\u0456. \u041c\u04b1\u043d\u0434\u0430 \u0435\u0441\u043a\u0435\u0440\u0435\u0442\u0456\u043d \u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0436\u0430\u0439\u0442 \u0431\u0430\u0440. \u0411\u0456\u0440\u0456\u043d\u0448\u0456\u0434\u0435\u043d, \u0441\u04e9\u0437 \u0431\u0430\u0439\u043b\u0430\u043d\u044b\u0441 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0430\u0443\u049b\u044b\u043c\u044b\u043d\u0434\u0430\u0493\u044b NAT \u0442\u0443\u0440\u0430\u043b\u044b \u0431\u043e\u043b\u044b\u043f \u043e\u0442\u044b\u0440\u0493\u0430\u043d\u0434\u044b\u049b\u0442\u0430\u043d, \u0442\u0430\u0439\u043c-\u0430\u0443\u0442 \u043c\u04d9\u043d\u0434\u0435\u0440\u0456\u043d \u0440\u0435\u0442\u0442\u0435\u0443 \u049b\u0430\u0436\u0435\u0442. \u04d8\u0434\u0435\u043f\u043a\u0456 \u043c\u04d9\u043d\u0434\u0435\u0440 \u049b\u0430\u043b\u0441\u0430, \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044f\u043b\u0430\u0440 \u043a\u0435\u0441\u0442\u0435\u0441\u0456 \u0442\u0435\u0437 \u0430\u0440\u0430\u0434\u0430 \u0448\u0435\u043a\u0442\u0435\u043d \u0442\u044b\u0441 \u04af\u043b\u043a\u0435\u0439\u0456\u043f \u043a\u0435\u0442\u0443\u0456 \u043c\u04af\u043c\u043a\u0456\u043d. \u0422\u04e9\u043c\u0435\u043d\u0434\u0435 \u04e9\u0437 \u0441\u0435\u0440\u0432\u0435\u0440\u043b\u0435\u0440\u0456\u043c\u0434\u0435 \u049b\u043e\u043b\u0434\u0430\u043d\u0493\u0430\u043d \u0431\u0430\u043f\u0442\u0430\u0443\u043b\u0430\u0440\u0434\u044b\u04a3 \u043c\u044b\u0441\u0430\u043b\u044b \u0431\u0435\u0440\u0456\u043b\u0433\u0435\u043d:<\/p>\n<pre><code class=\"bash\">net.ipv4.ip_forward = 1\nnet.ipv4.ip_local_port_range = 8192 65535\n\nnet.netfilter.nf_conntrack_generic_timeout = 300\nnet.netfilter.nf_conntrack_tcp_timeout_syn_sent = 60\nnet.netfilter.nf_conntrack_tcp_timeout_syn_recv = 60\nnet.netfilter.nf_conntrack_tcp_timeout_established = 600\nnet.netfilter.nf_conntrack_tcp_timeout_fin_wait = 60\nnet.netfilter.nf_conntrack_tcp_timeout_close_wait = 45\nnet.netfilter.nf_conntrack_tcp_timeout_last_ack = 30\nnet.netfilter.nf_conntrack_tcp_timeout_time_wait = 120\nnet.netfilter.nf_conntrack_tcp_timeout_close = 10\nnet.netfilter.nf_conntrack_tcp_timeout_max_retrans = 300\nnet.netfilter.nf_conntrack_tcp_timeout_unacknowledged = 300\nnet.netfilter.nf_conntrack_udp_timeout = 30\nnet.netfilter.nf_conntrack_udp_timeout_stream = 60\nnet.netfilter.nf_conntrack_icmpv6_timeout = 30\nnet.netfilter.nf_conntrack_icmp_timeout = 30\nnet.netfilter.nf_conntrack_events_retry_timeout = 15\nnet.netfilter.nf_conntrack_checksum=0\n<\/code><\/pre>\n<p>\n\u0415\u043a\u0456\u043d\u0448\u0456\u0434\u0435\u043d, \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044f\u043b\u0430\u0440 \u043a\u0435\u0441\u0442\u0435\u0441\u0456\u043d\u0456\u04a3 \u04d9\u0434\u0435\u043f\u043a\u0456 \u04e9\u043b\u0448\u0435\u043c\u0456 \u0431\u0430\u0439\u043b\u0430\u043d\u044b\u0441 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b\u043d\u044b\u04a3 \u0436\u0435\u043b\u0456\u0441\u0456\u043d\u0434\u0435 \u0436\u04b1\u043c\u044b\u0441 \u0456\u0441\u0442\u0435\u0443\u0433\u0435 \u0430\u0440\u043d\u0430\u043b\u043c\u0430\u0493\u0430\u043d\u0434\u044b\u049b\u0442\u0430\u043d, \u043e\u043d\u044b \u04af\u043b\u043a\u0435\u0439\u0442\u0443 \u049b\u0430\u0436\u0435\u0442:<\/p>\n<pre><code class=\"plaintext\">net.netfilter.nf_conntrack_max = 3145728\n<\/code><\/pre>\n<p>\n \u0421\u043e\u043d\u0434\u0430\u0439-\u0430\u049b \u0431\u0430\u0440\u043b\u044b\u049b \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044f \u0441\u0430\u049b\u0442\u0430\u043b\u0430\u0442\u044b\u043d \u0445\u044d\u0448-\u043a\u0435\u0441\u0442\u0435\u0434\u0435\u0433\u0456 \u04b1\u044f\u0448\u044b\u049b\u0442\u0430\u0440 \u0441\u0430\u043d\u044b\u043d \u0434\u0430 \u043a\u04e9\u0431\u0435\u0439\u0442\u0443 \u043a\u0435\u0440\u0435\u043a (\u0431\u04b1\u043b \u2014 nf_conntrack \u043c\u043e\u0434\u0443\u043b\u0456\u043d\u0456\u04a3 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456): <\/p>\n<pre><code class=\"plaintext\">options nf_conntrack hashsize=1572864\n<\/code><\/pre>\n<p>\n\u041e\u0441\u044b \u049b\u0430\u0440\u0430\u043f\u0430\u0439\u044b\u043c \u04d9\u0440\u0435\u043a\u0435\u0442\u0442\u0435\u0440\u0434\u0435\u043d \u043a\u0435\u0439\u0456\u043d \u043a\u043b\u0438\u0435\u043d\u0442\u0442\u0435\u0440\u0434\u0456\u04a3 \u043a\u04e9\u043f\u0442\u0435\u0433\u0435\u043d \u043c\u0435\u043a\u0435\u043d\u0436\u0430\u0439\u044b\u043d \u0441\u044b\u0440\u0442\u049b\u044b \u043c\u0435\u043a\u0435\u043d\u0436\u0430\u0439\u043b\u0430\u0440 \u043f\u0443\u043b\u044b\u043d\u0430 \u0442\u04af\u0440\u043b\u0435\u043d\u0434\u0456\u0440\u0435 \u0430\u043b\u0430\u0442\u044b\u043d \u0436\u04b1\u043c\u044b\u0441 \u0456\u0441\u0442\u0435\u0439\u0442\u0456\u043d \u0448\u0435\u0448\u0456\u043c \u0434\u0430\u0439\u044b\u043d \u0431\u043e\u043b\u0430\u0434\u044b. \u0410\u043b\u0430\u0439\u0434\u0430 \u043e\u043d\u044b\u04a3 \u04e9\u043d\u0456\u043c\u0434\u0456\u043b\u0456\u0433\u0456 \u043a\u04e9\u04a3\u0456\u043b \u043a\u04e9\u043d\u0448\u0456\u0442\u043f\u0435\u0439\u0434\u0456. GNU\/Linux \u0436\u04af\u0439\u0435\u0441\u0456\u043d NAT \u04af\u0448\u0456\u043d \u0430\u043b\u0493\u0430\u0448 \u049b\u043e\u043b\u0434\u0430\u043d\u0493\u0430\u043d \u043a\u0435\u0437\u0434\u0435\u0440\u0456\u043c\u0434\u0435 (\u0448\u0430\u043c\u0430\u043c\u0435\u043d 2013 \u0436\u044b\u043b\u044b) \u0431\u0456\u0440 \u0441\u0435\u0440\u0432\u0435\u0440\u0434\u0435 (Xeon E5-1650v2) 0.8Mpps \u043a\u0435\u0437\u0456\u043d\u0434\u0435 \u0448\u0430\u043c\u0430\u043c\u0435\u043d 7Gbit\/s \u04e9\u043d\u0456\u043c\u0434\u0456\u043b\u0456\u043a\u043a\u0435 \u049b\u043e\u043b \u0436\u0435\u0442\u043a\u0456\u0437\u0434\u0456\u043c. \u0421\u043e\u0434\u0430\u043d \u0431\u0435\u0440\u0456 GNU\/Linux \u044f\u0434\u0440\u043e\u0441\u044b\u043d\u044b\u04a3 \u0436\u0435\u043b\u0456\u043b\u0456\u043a \u0441\u0442\u0435\u0433\u0456\u043d\u0435 \u043a\u04e9\u043f\u0442\u0435\u0433\u0435\u043d \u043e\u04a3\u0442\u0430\u0439\u043b\u0430\u043d\u0434\u044b\u0440\u0443 \u0435\u043d\u0433\u0456\u0437\u0456\u043b\u0456\u043f, \u0441\u043e\u043b \u0436\u0430\u0431\u0434\u044b\u049b\u0442\u0430\u0493\u044b \u0431\u0456\u0440 \u0441\u0435\u0440\u0432\u0435\u0440\u0434\u0456\u04a3 \u04e9\u043d\u0456\u043c\u0434\u0456\u043b\u0456\u0433\u0456 1.8\u20131.9 Mpps \u043a\u0435\u0437\u0456\u043d\u0434\u0435 18\u201319 Gbit\/s \u0448\u0430\u043c\u0430\u0441\u044b\u043d\u0430 \u0434\u0435\u0439\u0456\u043d \u04e9\u0441\u0442\u0456. \u0411\u04b1\u043b \u2014 \u0448\u0435\u043a\u0442\u0456 \u043c\u04d9\u043d\u0434\u0435\u0440 \u0435\u0434\u0456. \u0411\u0456\u0440\u0430\u049b \u0431\u0456\u0440 \u0441\u0435\u0440\u0432\u0435\u0440 \u04e9\u04a3\u0434\u0435\u0443\u0433\u0435 \u0442\u0438\u0456\u0441 \u0442\u0440\u0430\u0444\u0438\u043a \u043a\u04e9\u043b\u0435\u043c\u0456 \u0431\u04b1\u0434\u0430\u043d \u04d9\u043b\u0434\u0435\u049b\u0430\u0439\u0434\u0430 \u0436\u044b\u043b\u0434\u0430\u043c \u04e9\u0441\u0442\u0456. \u041d\u04d9\u0442\u0438\u0436\u0435\u0441\u0456\u043d\u0434\u0435 \u0436\u04af\u043a\u0442\u0435\u043c\u0435\u043d\u0456 \u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0433\u0435 \u0431\u04e9\u043b\u0443 \u0441\u0445\u0435\u043c\u0430\u043b\u0430\u0440\u044b \u0436\u0430\u0441\u0430\u043b\u0434\u044b, \u0430\u043b\u0430\u0439\u0434\u0430 \u043e\u043b\u0430\u0440\u0434\u044b \u049b\u043e\u043b\u0434\u0430\u043d\u0443 \u0431\u0430\u043f\u0442\u0430\u0443, \u049b\u044b\u0437\u043c\u0435\u0442 \u043a\u04e9\u0440\u0441\u0435\u0442\u0443 \u0436\u04d9\u043d\u0435 \u04b1\u0441\u044b\u043d\u044b\u043b\u0430\u0442\u044b\u043d \u049b\u044b\u0437\u043c\u0435\u0442 \u0441\u0430\u043f\u0430\u0441\u044b\u043d \u049b\u0430\u043c\u0442\u0430\u043c\u0430\u0441\u044b\u0437 \u0435\u0442\u0443 \u0436\u04b1\u043c\u044b\u0441\u044b\u043d \u043a\u04af\u0440\u0434\u0435\u043b\u0435\u043d\u0434\u0456\u0440\u0434\u0456.<\/p>\n<h3>NFTables<\/h3>\n<p>\n\u049a\u0430\u0437\u0456\u0440 \u043f\u0430\u043a\u0435\u0442\u0442\u0435\u0440\u0434\u0456 \u0431\u0430\u0493\u0434\u0430\u0440\u043b\u0430\u043c\u0430\u043b\u044b\u049b \u0434\u0435\u04a3\u0433\u0435\u0439\u0434\u0435 \u0431\u0430\u0493\u044b\u0442\u0442\u0430\u0443\u0434\u044b\u04a3 \u043a\u0435\u04a3 \u0442\u0430\u0440\u0430\u0493\u0430\u043d \u0442\u04d9\u0441\u0456\u043b\u0434\u0435\u0440\u0456\u043d\u0456\u04a3 \u0431\u0456\u0440\u0456 \u2014 DPDK \u043f\u0435\u043d XDP \u049b\u043e\u043b\u0434\u0430\u043d\u0443. \u0411\u04b1\u043b \u0442\u0430\u049b\u044b\u0440\u044b\u043f\u0442\u0430 \u043a\u04e9\u043f\u0442\u0435\u0433\u0435\u043d \u043c\u0430\u049b\u0430\u043b\u0430\u043b\u0430\u0440 \u0436\u0430\u0437\u044b\u043b\u044b\u043f, \u0442\u04af\u0440\u043b\u0456 \u0431\u0430\u044f\u043d\u0434\u0430\u043c\u0430\u043b\u0430\u0440 \u0436\u0430\u0441\u0430\u043b\u0434\u044b, \u043a\u043e\u043c\u043c\u0435\u0440\u0446\u0438\u044f\u043b\u044b\u049b \u04e9\u043d\u0456\u043c\u0434\u0435\u0440 \u0434\u0435 \u043f\u0430\u0439\u0434\u0430 \u0431\u043e\u043b\u0434\u044b (\u043c\u044b\u0441\u0430\u043b\u044b, VasExperts \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f\u0441\u044b\u043d\u044b\u04a3 \u0421\u041a\u0410\u0422 \u04e9\u043d\u0456\u043c\u0456). \u0410\u043b\u0430\u0439\u0434\u0430 \u0431\u0430\u0439\u043b\u0430\u043d\u044b\u0441 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043b\u0430\u0440\u044b\u043d\u044b\u04a3 \u0431\u0430\u0493\u0434\u0430\u0440\u043b\u0430\u043c\u0430\u0448\u044b\u043b\u0430\u0440 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0448\u0435\u043a\u0442\u0435\u0443\u043b\u0456 \u0431\u043e\u043b\u0493\u0430\u043d\u0434\u044b\u049b\u0442\u0430\u043d, \u043e\u0441\u044b \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0442\u0435\u0440 \u043d\u0435\u0433\u0456\u0437\u0456\u043d\u0434\u0435 \u04e9\u0437 \u0448\u0435\u0448\u0456\u043c\u0456\u043d \u04d9\u0437\u0456\u0440\u043b\u0435\u0443 \u043e\u04a3\u0430\u0439 \u0435\u043c\u0435\u0441. \u041c\u04b1\u043d\u0434\u0430\u0439 \u0448\u0435\u0448\u0456\u043c\u0434\u0456 \u043a\u0435\u0439\u0456\u043d \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443 \u0434\u0430 \u04d9\u043b\u0434\u0435\u049b\u0430\u0439\u0434\u0430 \u043a\u04af\u0440\u0434\u0435\u043b\u0456 \u0431\u043e\u043b\u0430\u0434\u044b, \u04d9\u0441\u0456\u0440\u0435\u0441\u0435 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a\u0430 \u049b\u04b1\u0440\u0430\u043b\u0434\u0430\u0440\u044b\u043d \u04d9\u0437\u0456\u0440\u043b\u0435\u0443\u0433\u0435 \u0442\u0443\u0440\u0430 \u043a\u0435\u043b\u0435\u0434\u0456. \u041c\u044b\u0441\u0430\u043b\u044b, DPDK-\u043f\u0435\u043d \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0442\u044b tcpdump \u04e9\u0437\u0434\u0456\u0433\u0456\u043d\u0435\u043d \u0436\u04b1\u043c\u044b\u0441 \u0456\u0441\u0442\u0435\u043c\u0435\u0439\u0434\u0456, \u0430\u043b XDP \u043a\u04e9\u043c\u0435\u0433\u0456\u043c\u0435\u043d \u0436\u0435\u043b\u0456\u0433\u0435 \u043a\u0435\u0440\u0456 \u0436\u0456\u0431\u0435\u0440\u0456\u043b\u0433\u0435\u043d \u043f\u0430\u043a\u0435\u0442\u0442\u0435\u0440\u0434\u0456 \u0434\u0435 \u00ab\u043a\u04e9\u0440\u043c\u0435\u0439\u0434\u0456\u00bb. \u041f\u0430\u043a\u0435\u0442\u0442\u0435\u0440\u0434\u0456 user space \u043a\u0435\u04a3\u0456\u0441\u0442\u0456\u0433\u0456\u043d\u0434\u0435 \u04e9\u04a3\u0434\u0435\u0443\u0433\u0435 \u0430\u0440\u043d\u0430\u043b\u0493\u0430\u043d \u0436\u0430\u04a3\u0430 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f\u043b\u0430\u0440 \u0442\u0443\u0440\u0430\u043b\u044b \u04d9\u04a3\u0433\u0456\u043c\u0435\u043b\u0435\u0440 \u0430\u044f\u0441\u044b\u043d\u0434\u0430 \u043d\u0430\u0437\u0430\u0440\u0434\u0430\u043d \u0442\u044b\u0441 \u049b\u0430\u043b\u0493\u0430\u043d <noindex><a rel=\"nofollow\" href=\"https:\/\/netdevconf.info\/0x13\/session.html?workshop-netfilter-mini\">\u0431\u0430\u044f\u043d\u0434\u0430\u043c\u0430\u043b\u0430\u0440<\/a><\/noindex> \u0436\u04d9\u043d\u0435 <noindex><a rel=\"nofollow\" href=\"https:\/\/lwn.net\/Articles\/738214\/\">\u043c\u0430\u049b\u0430\u043b\u0430\u043d\u044b\u04a3<\/a><\/noindex> \u2014 iptables \u0436\u043e\u0431\u0430\u0441\u044b\u043d\u044b\u04a3 \u043c\u0435\u0439\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0456 \u041f\u0430\u0431\u043b\u043e \u041d\u0435\u0439\u0440\u0430 \u0410\u044e\u0441\u043e\u043d\u044b\u04a3 nftables \u0436\u04af\u0439\u0435\u0441\u0456\u043d\u0434\u0435 flow offloading \u04d9\u0437\u0456\u0440\u043b\u0435\u0443 \u0442\u0443\u0440\u0430\u043b\u044b \u0431\u0430\u044f\u043d\u0434\u0430\u043c\u0430\u0441\u044b. \u0411\u04b1\u043b \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0434\u0456 \u0442\u043e\u043b\u044b\u0493\u044b\u0440\u0430\u049b \u049b\u0430\u0440\u0430\u0441\u0442\u044b\u0440\u0430\u0439\u044b\u049b.<\/p>\n<p>\u041d\u0435\u0433\u0456\u0437\u0433\u0456 \u0438\u0434\u0435\u044f \u043c\u044b\u043d\u0430\u0434\u0430\u0439: \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440 \u0431\u0456\u0440 \u0441\u0435\u0441\u0441\u0438\u044f\u043d\u044b\u04a3 \u0435\u043a\u0456 \u0431\u0430\u0493\u044b\u0442\u0442\u0430\u0493\u044b \u043f\u0430\u043a\u0435\u0442\u0442\u0435\u0440\u0456\u043d \u04e9\u0442\u043a\u0456\u0437\u0456\u043f, TCP \u0441\u0435\u0441\u0441\u0438\u044f\u0441\u044b ESTABLISHED \u043a\u04af\u0439\u0456\u043d\u0435 \u04e9\u0442\u043a\u0435\u043d\u043d\u0435\u043d \u043a\u0435\u0439\u0456\u043d, \u0441\u043e\u043b \u0441\u0435\u0441\u0441\u0438\u044f\u043d\u044b\u04a3 \u043a\u0435\u0439\u0456\u043d\u0433\u0456 \u043f\u0430\u043a\u0435\u0442\u0442\u0435\u0440\u0456\u043d \u0431\u0440\u0430\u043d\u0434\u043c\u0430\u0443\u044d\u0440\u0434\u0456\u04a3 \u0431\u0430\u0440\u043b\u044b\u049b \u0435\u0440\u0435\u0436\u0435\u0441\u0456\u043d\u0435\u043d \u049b\u0430\u0439\u0442\u0430 \u04e9\u0442\u043a\u0456\u0437\u0443\u0434\u0456\u04a3 \u049b\u0430\u0436\u0435\u0442\u0456 \u0436\u043e\u049b. \u04e8\u0439\u0442\u043a\u0435\u043d\u0456 \u0431\u04b1\u043b \u0442\u0435\u043a\u0441\u0435\u0440\u0443\u043b\u0435\u0440\u0434\u0456\u04a3 \u0431\u04d9\u0440\u0456 \u043f\u0430\u043a\u0435\u0442\u0442\u0456 \u04d9\u0440\u0456 \u049b\u0430\u0440\u0430\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0442\u0430\u0443\u0493\u0430 \u0436\u0456\u0431\u0435\u0440\u0443\u043c\u0435\u043d \u0430\u044f\u049b\u0442\u0430\u043b\u0430\u0434\u044b. \u041c\u0430\u0440\u0448\u0440\u0443\u0442\u0442\u044b \u0442\u0430\u04a3\u0434\u0430\u0443\u0434\u044b\u04a3 \u0434\u0430 \u049b\u0430\u0436\u0435\u0442\u0456 \u0436\u043e\u049b: \u043f\u0430\u043a\u0435\u0442\u0442\u0435\u0440\u0434\u0456 \u049b\u0430\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0430\u0440\u049b\u044b\u043b\u044b \u0436\u04d9\u043d\u0435 \u049b\u0430\u0439 \u0445\u043e\u0441\u0442\u049b\u0430 \u0436\u0456\u0431\u0435\u0440\u0443 \u043a\u0435\u0440\u0435\u0433\u0456\u043d \u04d9\u043b\u0434\u0435\u049b\u0430\u0448\u0430\u043d \u0431\u0456\u043b\u0435\u043c\u0456\u0437. \u0415\u043d\u0434\u0456 \u043e\u0441\u044b \u0430\u049b\u043f\u0430\u0440\u0430\u0442\u0442\u044b \u0441\u0430\u049b\u0442\u0430\u043f, \u043f\u0430\u043a\u0435\u0442\u0442\u0456 \u04e9\u04a3\u0434\u0435\u0443\u0434\u0456\u04a3 \u0431\u0430\u0441\u0442\u0430\u043f\u049b\u044b \u043a\u0435\u0437\u0435\u04a3\u0456\u043d\u0434\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0442\u0430\u0443 \u04af\u0448\u0456\u043d \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443 \u0493\u0430\u043d\u0430 \u049b\u0430\u043b\u0430\u0434\u044b. NAT \u043e\u0440\u044b\u043d\u0434\u0430\u043b\u0493\u0430\u043d \u043a\u0435\u0437\u0434\u0435 nf_conntrack \u043c\u043e\u0434\u0443\u043b\u0456 \u04e9\u0437\u0433\u0435\u0440\u0442\u043a\u0435\u043d \u043c\u0435\u043a\u0435\u043d\u0436\u0430\u0439\u043b\u0430\u0440 \u043c\u0435\u043d \u043f\u043e\u0440\u0442\u0442\u0430\u0440 \u0442\u0443\u0440\u0430\u043b\u044b \u0430\u049b\u043f\u0430\u0440\u0430\u0442\u0442\u044b \u0434\u0430 \u0441\u0430\u049b\u0442\u0430\u0443 \u049b\u0430\u0436\u0435\u0442. \u04d8\u0440\u0438\u043d\u0435, \u043c\u04b1\u043d\u0434\u0430\u0439 \u0436\u0430\u0493\u0434\u0430\u0439\u0434\u0430 iptables \u0436\u04af\u0439\u0435\u0441\u0456\u043d\u0434\u0435\u0433\u0456 \u0442\u04af\u0440\u043b\u0456 policer \u049b\u04b1\u0440\u0430\u043b\u0434\u0430\u0440\u044b \u043c\u0435\u043d \u0431\u0430\u0441\u049b\u0430 \u0434\u0430 \u0430\u049b\u043f\u0430\u0440\u0430\u0442\u0442\u044b\u049b-\u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0435\u0440\u0435\u0436\u0435\u043b\u0435\u0440 \u0436\u04b1\u043c\u044b\u0441\u044b\u043d \u0442\u043e\u049b\u0442\u0430\u0442\u0430\u0434\u044b. \u0411\u0456\u0440\u0430\u049b NAT \u049b\u04b1\u0440\u044b\u043b\u0493\u044b\u0441\u044b \u043d\u0435\u043c\u0435\u0441\u0435, \u043c\u044b\u0441\u0430\u043b\u044b, \u0448\u0435\u043a\u0430\u0440\u0430\u043b\u044b\u049b \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440 \u0440\u0435\u0442\u0456\u043d\u0434\u0435 \u0436\u0435\u043a\u0435 \u049b\u043e\u043b\u0434\u0430\u043d\u044b\u043b\u0430\u0442\u044b\u043d \u0436\u0430\u0493\u0434\u0430\u0439\u0434\u0430 \u0431\u04b1\u043b \u0430\u0441\u0430 \u043c\u0430\u04a3\u044b\u0437\u0434\u044b \u0435\u043c\u0435\u0441, \u04e9\u0439\u0442\u043a\u0435\u043d\u0456 \u049b\u044b\u0437\u043c\u0435\u0442\u0442\u0435\u0440 \u04d9\u0440\u0442\u04af\u0440\u043b\u0456 \u049b\u04b1\u0440\u044b\u043b\u0493\u044b\u043b\u0430\u0440\u0493\u0430 \u0431\u04e9\u043b\u0456\u043d\u0433\u0435\u043d.<\/p>\n<h4>\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f<\/h4>\n<p>\n\u0411\u04b1\u043b \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043d\u044b \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443 \u04af\u0448\u0456\u043d \u043c\u044b\u043d\u0430\u043b\u0430\u0440 \u049b\u0430\u0436\u0435\u0442:<\/p>\n<ul>\n<li>\u042f\u0434\u0440\u043e\u043d\u044b\u04a3 \u0436\u0430\u04a3\u0430 \u043d\u04b1\u0441\u049b\u0430\u0441\u044b\u043d \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443. \u0424\u0443\u043d\u043a\u0446\u0438\u044f\u043d\u044b\u04a3 \u04e9\u0437\u0456 4.16 \u044f\u0434\u0440\u043e\u0441\u044b\u043d\u0434\u0430 \u043f\u0430\u0439\u0434\u0430 \u0431\u043e\u043b\u0493\u0430\u043d\u044b\u043c\u0435\u043d, \u04b1\u0437\u0430\u049b \u0443\u0430\u049b\u044b\u0442 \u0431\u043e\u0439\u044b \u0442\u04b1\u0440\u0430\u049b\u0441\u044b\u0437 \u0431\u043e\u043b\u044b\u043f, kernel panic \u0436\u0430\u0493\u0434\u0430\u0439\u043b\u0430\u0440\u044b\u043d \u0436\u0438\u0456 \u0442\u0443\u044b\u043d\u0434\u0430\u0442\u0442\u044b. \u0416\u0430\u0493\u0434\u0430\u0439 2019 \u0436\u044b\u043b\u0493\u044b \u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d \u0448\u0430\u043c\u0430\u0441\u044b\u043d\u0434\u0430, 4.19.90 \u0436\u04d9\u043d\u0435 5.4.5 LTS \u044f\u0434\u0440\u043e\u043b\u0430\u0440\u044b \u0448\u044b\u049b\u049b\u0430\u043d \u043a\u0435\u0437\u0434\u0435 \u0493\u0430\u043d\u0430 \u0442\u04b1\u0440\u0430\u049b\u0442\u0430\u043d\u0434\u044b.<\/li>\n<li>iptables \u0435\u0440\u0435\u0436\u0435\u043b\u0435\u0440\u0456\u043d nftables \u0444\u043e\u0440\u043c\u0430\u0442\u044b\u043d\u0430 \u043a\u04e9\u0448\u0456\u0440\u0443 \u04af\u0448\u0456\u043d nftables-\u0442\u0456\u04a3 \u0436\u0435\u0442\u043a\u0456\u043b\u0456\u043a\u0442\u0456 \u0436\u0430\u04a3\u0430 \u043d\u04b1\u0441\u049b\u0430\u0441\u044b\u043d \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u044b\u04a3\u044b\u0437. 0.9.0 \u043d\u04b1\u0441\u049b\u0430\u0441\u044b\u043d\u0434\u0430 \u0441\u0435\u043d\u0456\u043c\u0434\u0456 \u0436\u04b1\u043c\u044b\u0441 \u0456\u0441\u0442\u0435\u0439\u0434\u0456<\/li>\n<\/ul>\n<p>\n\u0411\u0456\u0440\u0456\u043d\u0448\u0456 \u0442\u0430\u0440\u043c\u0430\u049b \u0436\u0430\u043b\u043f\u044b \u0442\u04af\u0441\u0456\u043d\u0456\u043a\u0442\u0456: \u0436\u0438\u043d\u0430\u049b\u0442\u0430\u0443 \u043a\u0435\u0437\u0456\u043d\u0434\u0435 \u043c\u043e\u0434\u0443\u043b\u044c\u0434\u0456 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f\u0493\u0430 \u049b\u043e\u0441\u0443\u0434\u044b \u04b1\u043c\u044b\u0442\u043f\u0430\u0443 \u043a\u0435\u0440\u0435\u043a (CONFIG_NFT_FLOW_OFFLOAD=m). \u0410\u043b \u0435\u043a\u0456\u043d\u0448\u0456 \u0442\u0430\u0440\u043c\u0430\u049b\u0442\u044b \u0442\u04af\u0441\u0456\u043d\u0434\u0456\u0440\u0443 \u049b\u0430\u0436\u0435\u0442. nftables \u0435\u0440\u0435\u0436\u0435\u043b\u0435\u0440\u0456 iptables \u0435\u0440\u0435\u0436\u0435\u043b\u0435\u0440\u0456\u043d\u0435\u043d \u043c\u04af\u043b\u0434\u0435 \u0431\u0430\u0441\u049b\u0430\u0448\u0430 \u0441\u0438\u043f\u0430\u0442\u0442\u0430\u043b\u0430\u0434\u044b. <noindex><a rel=\"nofollow\" href=\"https:\/\/wiki.nftables.org\/wiki-nftables\/index.php\/Main_Page\">\u049a\u04b1\u0436\u0430\u0442\u0442\u0430\u043c\u0430<\/a><\/noindex> \u0406\u0441 \u0436\u04af\u0437\u0456\u043d\u0434\u0435 \u0431\u0430\u0440\u043b\u044b\u049b \u0436\u0430\u0439\u0442\u0442\u044b \u049b\u0430\u043c\u0442\u0438\u0434\u044b, \u0441\u043e\u043d\u0434\u0430\u0439-\u0430\u049b \u0430\u0440\u043d\u0430\u0439\u044b <noindex><a rel=\"nofollow\" href=\"https:\/\/wiki.nftables.org\/wiki-nftables\/index.php\/Moving_from_iptables_to_nftables\">\u0442\u04af\u0440\u043b\u0435\u043d\u0434\u0456\u0440\u0433\u0456\u0448\u0442\u0435\u0440<\/a><\/noindex> iptables \u0435\u0440\u0435\u0436\u0435\u043b\u0435\u0440\u0456\u043d nftables \u0444\u043e\u0440\u043c\u0430\u0442\u044b\u043d\u0430 \u0442\u04af\u0440\u043b\u0435\u043d\u0434\u0456\u0440\u0443\u0433\u0435 \u0430\u0440\u043d\u0430\u043b\u0493\u0430\u043d. \u0421\u043e\u043d\u0434\u044b\u049b\u0442\u0430\u043d NAT \u043f\u0435\u043d flow offload \u0431\u0430\u043f\u0442\u0430\u0443\u044b\u043d\u044b\u04a3 \u043c\u044b\u0441\u0430\u043b\u044b\u043d \u0493\u0430\u043d\u0430 \u043a\u0435\u043b\u0442\u0456\u0440\u0435\u043c\u0456\u043d. \u041c\u044b\u0441\u0430\u043b\u0493\u0430 \u0430\u0440\u043d\u0430\u043b\u0493\u0430\u043d \u0448\u0430\u0493\u044b\u043d \u0442\u04af\u0441\u0456\u043d\u0434\u0456\u0440\u043c\u0435: <i>,  \u2014 \u0442\u0440\u0430\u0444\u0438\u043a \u04e9\u0442\u0435\u0442\u0456\u043d \u0436\u0435\u043b\u0456\u043b\u0456\u043a \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0442\u0435\u0440. \u0406\u0441 \u0436\u04af\u0437\u0456\u043d\u0434\u0435 \u043e\u043b\u0430\u0440\u0434\u044b\u04a3 \u0441\u0430\u043d\u044b \u0435\u043a\u0435\u0443\u0434\u0435\u043d \u043a\u04e9\u043f \u0431\u043e\u043b\u0443\u044b \u043c\u04af\u043c\u043a\u0456\u043d. , \u2014 \u00ab\u0430\u049b\u00bb IP-\u043c\u0435\u043a\u0435\u043d\u0436\u0430\u0439\u043b\u0430\u0440 \u0430\u0443\u049b\u044b\u043c\u044b\u043d\u044b\u04a3 \u0431\u0430\u0441\u0442\u0430\u043f\u049b\u044b \u0436\u04d9\u043d\u0435 \u0441\u043e\u04a3\u0493\u044b \u043c\u0435\u043a\u0435\u043d\u0436\u0430\u0439\u043b\u0430\u0440\u044b.<\/p>\n<p>NAT \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f\u0441\u044b \u04e9\u0442\u0435 \u049b\u0430\u0440\u0430\u043f\u0430\u0439\u044b\u043c:<\/p>\n<pre><code class=\"bash\">#! \/usr\/sbin\/nft -f\n\ntable nat {\n        chain postrouting {\n                type nat hook postrouting priority 100;\n                oif &lt;o_if&gt; snat to &lt;pool_addr_start&gt;-&lt;pool_addr_end&gt; persistent\n        }\n}\n<\/code><\/pre>\n<p>\nFlow offload \u0431\u0430\u043f\u0442\u0430\u0443\u044b \u0441\u04d9\u043b \u043a\u04af\u0440\u0434\u0435\u043b\u0456\u0440\u0435\u043a, \u0431\u0456\u0440\u0430\u049b \u0442\u04af\u0441\u0456\u043d\u0456\u043a\u0442\u0456:<\/p>\n<pre><code class=\"bash\">#! \/usr\/sbin\/nft -f\n\ntable inet filter {\n        flowtable fastnat {\n                hook ingress priority 0\n                devices = { &lt;i_if&gt;, &lt;o_if&gt; }\n        }\n\n        chain forward {\n                type filter hook forward priority 0; policy accept;\n                ip protocol { tcp , udp } flow offload @fastnat;\n        }\n}\n<\/code><\/pre>\n<p>\n\u0411\u0430\u043f\u0442\u0430\u0443\u0434\u044b\u04a3 \u0431\u04d9\u0440\u0456 \u043e\u0441\u044b. \u0415\u043d\u0434\u0456 \u0431\u0430\u0440\u043b\u044b\u049b TCP\/UDP \u0442\u0440\u0430\u0444\u0438\u0433\u0456 fastnat \u043a\u0435\u0441\u0442\u0435\u0441\u0456\u043d\u0435 \u0442\u04af\u0441\u0456\u043f, \u04d9\u043b\u0434\u0435\u049b\u0430\u0439\u0434\u0430 \u0436\u044b\u043b\u0434\u0430\u043c \u04e9\u04a3\u0434\u0435\u043b\u0435\u0434\u0456.<\/p>\n<h3>\u041d\u04d9\u0442\u0438\u0436\u0435\u043b\u0435\u0440\u0456<\/h3>\n<p>\n\u0411\u04b1\u043b \u00ab\u04d9\u043b\u0434\u0435\u049b\u0430\u0439\u0434\u0430 \u0436\u044b\u043b\u0434\u0430\u043c\u00bb \u0434\u0435\u0433\u0435\u043d\u043d\u0456\u04a3 \u049b\u0430\u043d\u0448\u0430\u043b\u044b\u049b\u0442\u044b \u0435\u043a\u0435\u043d\u0456\u043d \u043a\u04e9\u0440\u0441\u0435\u0442\u0443 \u04af\u0448\u0456\u043d \u0431\u0456\u0440\u0434\u0435\u0439 \u0436\u0430\u0431\u0434\u044b\u049b\u0442\u0430\u043b\u0493\u0430\u043d (Xeon E5-1650v2), \u0431\u0456\u0440\u0434\u0435\u0439 \u0431\u0430\u043f\u0442\u0430\u043b\u0493\u0430\u043d \u0436\u04d9\u043d\u0435 \u0431\u0456\u0440 Linux \u044f\u0434\u0440\u043e\u0441\u044b\u043d \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0430\u0442\u044b\u043d, \u0431\u0456\u0440\u0430\u049b NAT-\u0442\u044b \u0431\u0456\u0440\u0456\u043d\u0434\u0435 iptables (NAT4), \u0435\u043a\u0456\u043d\u0448\u0456\u0441\u0456\u043d\u0434\u0435 nftables (NAT5) \u0430\u0440\u049b\u044b\u043b\u044b \u043e\u0440\u044b\u043d\u0434\u0430\u0439\u0442\u044b\u043d \u0435\u043a\u0456 \u043d\u0430\u049b\u0442\u044b \u0441\u0435\u0440\u0432\u0435\u0440\u0434\u0456\u04a3 \u0436\u04af\u043a\u0442\u0435\u043c\u0435\u0441\u0456\u043d \u043a\u04e9\u0440\u0441\u0435\u0442\u0435\u0442\u0456\u043d \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0442\u044b \u049b\u043e\u0441\u0442\u044b\u043c.<\/p>\n<p><img decoding=\"async\" alt=\"Linux \u0436\u04af\u0439\u0435\u0441\u0456\u043d\u0434\u0435\u0433\u0456 \u0436\u044b\u043b\u0434\u0430\u043c \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0436\u04d9\u043d\u0435 NAT\" src=\"\/wp-content\/uploads\/2020\/05\/94bd3f58bf499ceb9837cd771cc9ef9f.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\n\u0421\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0442\u0430 \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d\u0430 \u04e9\u04a3\u0434\u0435\u043b\u0435\u0442\u0456\u043d \u043f\u0430\u043a\u0435\u0442\u0442\u0435\u0440 \u0433\u0440\u0430\u0444\u0438\u0433\u0456 \u0436\u043e\u049b. \u0414\u0435\u0433\u0435\u043d\u043c\u0435\u043d, \u0431\u04b1\u043b \u0441\u0435\u0440\u0432\u0435\u0440\u043b\u0435\u0440\u0434\u0456\u04a3 \u0436\u04af\u043a\u0442\u0435\u043c\u0435 \u043f\u0440\u043e\u0444\u0438\u043b\u0456\u043d\u0434\u0435\u0433\u0456 \u043f\u0430\u043a\u0435\u0442\u0442\u0456\u04a3 \u043e\u0440\u0442\u0430\u0448\u0430 \u04e9\u043b\u0448\u0435\u043c\u0456 \u0448\u0430\u043c\u0430\u043c\u0435\u043d 800 \u0431\u0430\u0439\u0442, \u0441\u043e\u043d\u0434\u044b\u049b\u0442\u0430\u043d \u043a\u04e9\u0440\u0441\u0435\u0442\u043a\u0456\u0448 1.5Mpps-\u043a\u0435 \u0434\u0435\u0439\u0456\u043d \u0436\u0435\u0442\u0435\u0434\u0456. \u041a\u04e9\u0440\u0456\u043f \u043e\u0442\u044b\u0440\u0493\u0430\u043d\u044b\u04a3\u044b\u0437\u0434\u0430\u0439, nftables \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0430\u0442\u044b\u043d \u0441\u0435\u0440\u0432\u0435\u0440\u0434\u0456\u04a3 \u04e9\u043d\u0456\u043c\u0434\u0456\u043b\u0456\u043a \u049b\u043e\u0440\u044b \u04e9\u0442\u0435 \u04af\u043b\u043a\u0435\u043d. \u049a\u0430\u0437\u0456\u0440 \u0431\u04b1\u043b \u0441\u0435\u0440\u0432\u0435\u0440 3Mpps \u043a\u0435\u0437\u0456\u043d\u0434\u0435 30Gbit\/s-\u049b\u0430 \u0434\u0435\u0439\u0456\u043d \u04e9\u04a3\u0434\u0435\u0439\u0434\u0456 \u0436\u04d9\u043d\u0435 \u0431\u043e\u0441 CPU \u0440\u0435\u0441\u0443\u0440\u0441\u0442\u0430\u0440\u044b \u0431\u043e\u043b\u0430 \u0442\u04b1\u0440\u0430, \u0436\u0435\u043b\u0456\u043d\u0456\u04a3 40Gbps \u0444\u0438\u0437\u0438\u043a\u0430\u043b\u044b\u049b \u0448\u0435\u0433\u0456\u043d\u0435 \u0436\u0435\u0442\u0443\u0433\u0435 \u04d9\u0431\u0434\u0435\u043d \u049b\u0430\u0431\u0456\u043b\u0435\u0442\u0442\u0456.<\/p>\n<p>\u0411\u04b1\u043b \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u0441\u0435\u0440\u0432\u0435\u0440\u043b\u0435\u0440\u0456\u043d\u0456\u04a3 \u04e9\u043d\u0456\u043c\u0434\u0456\u043b\u0456\u0433\u0456\u043d \u0430\u0440\u0442\u0442\u044b\u0440\u0443\u0493\u0430 \u0442\u044b\u0440\u044b\u0441\u044b\u043f \u0436\u04af\u0440\u0433\u0435\u043d \u0436\u0435\u043b\u0456 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043b\u0435\u0440\u0456\u043d\u0435 \u043f\u0430\u0439\u0434\u0430\u043b\u044b \u0431\u043e\u043b\u0430\u0434\u044b \u0434\u0435\u043f \u04af\u043c\u0456\u0442\u0442\u0435\u043d\u0435\u043c\u0456\u043d.<br \/>\n<br \/>\u0414\u0435\u0440\u0435\u043a\u043a\u04e9\u0437: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/501234\/\">habr.com<\/a> <\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u041f\u043e \u043c\u0435\u0440\u0435 \u0438\u0441\u0447\u0435\u0440\u043f\u0430\u043d\u0438\u044f \u0430\u0434\u0440\u0435\u0441\u043e\u0432 IPv4, \u043c\u043d\u043e\u0433\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0441\u0432\u044f\u0437\u0438 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0438\u0441\u044c \u0441 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c\u044e \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u0441\u0432\u043e\u0438\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0432 \u0441\u0435\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438 \u0430\u0434\u0440\u0435\u0441\u043e\u0432. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0443\u0440\u043e\u0432\u043d\u044f Carrier Grade NAT \u043d\u0430 commodity \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445. \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u0422\u0435\u043c\u0430 \u0438\u0441\u0447\u0435\u0440\u043f\u0430\u043d\u0438\u044f \u0430\u0434\u0440\u0435\u0441\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430 IPv4 \u0443\u0436\u0435 \u043d\u0435 \u043d\u043e\u0432\u0430. \u0412 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u043e\u043c\u0435\u043d\u0442 \u0432 RIPE \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":81266,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-81265","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.6.2 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u041f\u043e \u043c\u0435\u0440\u0435 \u0438\u0441\u0447\u0435\u0440\u043f\u0430\u043d\u0438\u044f \u0430\u0434\u0440\u0435\u0441\u043e\u0432 IPv4, \u043c\u043d\u043e\u0433\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0441\u0432\u044f\u0437\u0438 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0438\u0441\u044c \u0441 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c\u044e \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u0441\u0432\u043e\u0438\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0432 \u0441\u0435\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438 \u0430\u0434\u0440\u0435\u0441\u043e\u0432.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/kk\/blog\/administrirovanie\/bystryj-routing-i-nat-v-linux\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.6.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0411\u044b\u0441\u0442\u0440\u044b\u0439 \u0440\u043e\u0443\u0442\u0438\u043d\u0433 \u0438 NAT \u0432 Linux | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u041f\u043e \u043c\u0435\u0440\u0435 \u0438\u0441\u0447\u0435\u0440\u043f\u0430\u043d\u0438\u044f \u0430\u0434\u0440\u0435\u0441\u043e\u0432 IPv4, \u043c\u043d\u043e\u0433\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0441\u0432\u044f\u0437\u0438 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0438\u0441\u044c \u0441 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c\u044e \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u0441\u0432\u043e\u0438\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0432 \u0441\u0435\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438 \u0430\u0434\u0440\u0435\u0441\u043e\u0432.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/kk\/blog\/administrirovanie\/bystryj-routing-i-nat-v-linux\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-05-11T23:42:43+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-05-11T23:42:43+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Linux \u0436\u04af\u0439\u0435\u0441\u0456\u043d\u0434\u0435\u0433\u0456 \u0436\u044b\u043b\u0434\u0430\u043c \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0436\u04d9\u043d\u0435 NAT | ProHoster","description":"IPv4 \u043c\u0435\u043a\u0435\u043d\u0436\u0430\u0439\u043b\u0430\u0440\u044b \u0442\u0430\u0443\u0441\u044b\u043b\u0430 \u0431\u0430\u0441\u0442\u0430\u0493\u0430\u043d \u0441\u0430\u0439\u044b\u043d, \u043a\u04e9\u043f\u0442\u0435\u0433\u0435\u043d \u0431\u0430\u0439\u043b\u0430\u043d\u044b\u0441 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043b\u0430\u0440\u044b \u043a\u043b\u0438\u0435\u043d\u0442\u0442\u0435\u0440\u0456\u043d\u0435 \u0436\u0435\u043b\u0456\u0433\u0435 \u049b\u043e\u043b\u0436\u0435\u0442\u0456\u043c\u0434\u0456\u043b\u0456\u043a\u0442\u0456 \u043c\u0435\u043a\u0435\u043d\u0436\u0430\u0439\u043b\u0430\u0440\u0434\u044b \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044f\u043b\u0430\u0443 \u0430\u0440\u049b\u044b\u043b\u044b \u04b1\u0439\u044b\u043c\u0434\u0430\u0441\u0442\u044b\u0440\u0443 \u049b\u0430\u0436\u0435\u0442\u0442\u0456\u043b\u0456\u0433\u0456\u043d\u0435 \u0442\u0430\u043f \u0431\u043e\u043b\u0434\u044b.","canonical_url":"https:\/\/prohoster.info\/kk\/blog\/administrirovanie\/bystryj-routing-i-nat-v-linux","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"en_US","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0411\u044b\u0441\u0442\u0440\u044b\u0439 \u0440\u043e\u0443\u0442\u0438\u043d\u0433 \u0438 NAT \u0432 Linux | ProHoster","og:description":"\u041f\u043e \u043c\u0435\u0440\u0435 \u0438\u0441\u0447\u0435\u0440\u043f\u0430\u043d\u0438\u044f \u0430\u0434\u0440\u0435\u0441\u043e\u0432 IPv4, \u043c\u043d\u043e\u0433\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0441\u0432\u044f\u0437\u0438 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0438\u0441\u044c \u0441 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c\u044e \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u0441\u0432\u043e\u0438\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0432 \u0441\u0435\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438 \u0430\u0434\u0440\u0435\u0441\u043e\u0432.","og:url":"https:\/\/prohoster.info\/kk\/blog\/administrirovanie\/bystryj-routing-i-nat-v-linux","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2020-05-11T23:42:43+00:00","article:modified_time":"2020-05-11T23:42:43+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"81265","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":null,"breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 16:01:23","updated":"2022-09-28 04:47:17","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/kk\/wp-json\/wp\/v2\/posts\/81265","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/kk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/kk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/kk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/kk\/wp-json\/wp\/v2\/comments?post=81265"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/kk\/wp-json\/wp\/v2\/posts\/81265\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/kk\/wp-json\/wp\/v2\/media\/81266"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/kk\/wp-json\/wp\/v2\/media?parent=81265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/kk\/wp-json\/wp\/v2\/categories?post=81265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/kk\/wp-json\/wp\/v2\/tags?post=81265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}