Configure gateway proxy for Internet access in linux
Source: Internet
Author: User
In linux, the gateway proxy is used to set up Internet access. on the server side: Wireless Network Adapter: 192.168.1.101, wired network adapter: 192.168.9.12, and no Internet access settings: 1. enable IP forwarding echo & quot; 1 & quot; & gt;/proc/sys/net/ipv4/ip _... in linux, the gateway proxy is used to set up Internet access. on the server side: Wireless Network Adapter: 192.168.1.101, wired network adapter: 192.168.9.12, and no Internet access settings: 1. enable IP forwarding echo "1">/proc/sys/net/ipv4/ip_forward 2. set iptables rules iptables-t nat-a postrouting-j MASQUERADE client: wired network adapter: 192.168.9.101 set the gateway to 192.168.9.12 to allow Internet access. (Originally, the gateway is 192.168.9.1 and cannot access the Internet.) the server stops sharing the internet. Method 1: Stop Forwarding: echo "0">/proc/sys/net/ipv4/ip_forward 2. delete a nat rule: iptables-t nat-d postrouting 1
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