computers:firewall_configuration
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| computers:firewall_configuration [2011/08/31 12:33] – chkuo | computers:firewall_configuration [2020/08/16 00:13] (current) – [References] chkuo | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| net.ipv4.ip_forward=1 | net.ipv4.ip_forward=1 | ||
| </ | </ | ||
| + | Apply by '' | ||
| Then add the following lines to ''/ | Then add the following lines to ''/ | ||
| Line 12: | Line 13: | ||
| Ext_IF=" | Ext_IF=" | ||
| Ext_IP=" | Ext_IP=" | ||
| - | Int_IF=" | + | Int_IF=" |
| - | Int_Net=" | + | Int_Net=" |
| iptables -t nat -A POSTROUTING -s $Int_Net -o $Ext_IF -j SNAT --to-source $Ext_IP | iptables -t nat -A POSTROUTING -s $Int_Net -o $Ext_IF -j SNAT --to-source $Ext_IP | ||
| iptables -A FORWARD -s $Int_Net -o $Ext_IF -j ACCEPT | iptables -A FORWARD -s $Int_Net -o $Ext_IF -j ACCEPT | ||
| Line 40: | Line 41: | ||
| ===== References ===== | ===== References ===== | ||
| * [[https:// | * [[https:// | ||
| + | * [[https:// | ||
computers/firewall_configuration.1314765203.txt.gz · Last modified: by chkuo