Linux, Linux , . IPTables — Linux .
, Linux, . , Ip- . , , . , , . , IPTables.
IPTables
Linux. , SSH, HTTP, . , . IPTables :
- INPUT.
- FORWARD.
- OUTPUT.
Linux , Debian, Ubuntu, CentOS Fedora. IPTables . , . , , .
, :
- SSH.
- .
- Http-.
SSH , No 1, Http- - , No2, No3.
IPTables : . . — . , , , .
, . , . , .
IPTables . . , . , . , , - . , .
. , .
:
- PREROUTING . INPUT, FORWARD.
- - , .
- FORWARD - , . , .
- OUTPUT - , .
- POSTROUTING .
IPTables CentOS 7 . , , . , INPUT, FORWARD, OUTPUT .
Linux , . , , . , .
IPTables CentOS 7. , , , . , , , .
IPTables Ubuntu Server, , / etc / sysconfig . IPTables .
, . . INPUT, FORWARD OUTPUT ACCEPT. , , , .
. , , . INPUT FORWARD. . , IPTables, , .
IPTables Linux , Linux . . , , Ip- , . , IPTables .
"" ( ) , "" ( ) . "" . , , Web Proxy. , "" "". IPTables Nat . , - .
"" , "" . .
, IP- IP . , . , IP- IP "". Ip-, Ip- , , IP- .
-
Debian IPTables, , IPTables.
, , . . , , , . :
- A — . INPUT, FORWARD OUTPUT, , , INPUT, .
- L - .
- M conntrack - ctstate.
- Ctstate - .
- Dport - , .
- J - . IPTables Ubuntu : ACCEPT — ; REJECT — ; DROP — ; LOG — . -log-prefix -log-level .
- Log-prefix — , . .
- Log-level — syslog.
- I — , .
( Linux) . , , . . /etc/network/iptables :
sudo nano /etc/network/iptables.
:
IPTables [Ctrl] + [X]> Y> [Enter]. IPTables:
sudo iptables-restore /etc/network/iptables.
, , :
sudo iptables-save.
DNS-
- SSH, , . , , , 80 443 -.
DNS , FTP, , , UDP, TCP. DNS, Centos IPTables, TCP UDP.
DNS-, .
— IPTables , . , DNS . : X domain, Y TLD. X - , Y - TLD.
IP-
, . IP- IP-.
, , 80. IP 192.168.123.0/24. , .
IPTables , . , 80, iprange 80. 3 INPUT — , . - , ip.
Linux IPTables . Red Hat Live IPTables, init. /etc/sysconfig/iptables. init , .
: # /etc/init.d/iptables save
ip_conntrack_ftp, /etc/sysconfig/iptables-config , :
# vi /etc/sysconfig/iptables-config.
iptables / ip6tables , . . . , , .
, iptables-save iptables-restore, . : iptables-save > iptables.rules. . , : iptables-restore.
, , IPTables — . , RHEL CentOS, «iptables-services», : sudo yum install iptables-services.
iptables-save/restore . , .
Asterisk IP-
AsteriskNOW — CentOS Asterisk FreePBX. - « » Asterisk, . , root, Asterisk, CentOS , Asterisk , FreePBX Pin- . Asterisk SIP.
:
- DNS Ip-, , YOUR_HOSTNAME.no-ip.com.
- Asterisk , . Ip- .
- IPTables :
IPTables Asterisk , , Ip-. , , , .
INPUT, . FORWARD , . OUTPUT , .