Configure Fedora as a NAT Server

Source: Internet
Author: User
Configure Fedora as the NAT server-Linux Enterprise Application-Linux server application information. For more information, see. 2 K in the lab is always under attack and decides to use linux. After the result is installed with Fedora, no configuration is available. It may be because the version is too new and cannot be found online. After more than two months, I found the configuration method on the Internet. Open-source software really wants to say that it is not easy to love you. The compatibility of versions is too bad, and no one can coordinate it. developers can do anything and help is poor!

1. Modify/etc/sysctl. conf and set

Net. ipv4.ip _ forward = 0
Change
Net. ipv4.ip _ forward = 1

2. Modify/etc/rc. local and add the following content to the end of the file:

Iptables-t nat-a postrouting-o eth0-j MASQUERADE

Eth0 is the NIC connected to the Internet.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.