NAT 設定:

  1. echo "1" > /proc/sys/net/ipv4/ip_forward
  2. cat /proc/sys/net/ipv4/ip_forward
  3. gedit /etc/sysctl.conf

     add:
    
     net.ipv4.ip\_forward = 1
    
     net.ipv6.ip\_forward = 1
    

編輯iptables:

  1. gedit /etc/sysconfig/iptables

     將iptables的內容修改成像是Iptables File的內容即可
    

results matching ""

    No results matching ""