Wednesday, September 25, 2019
IPtables Rules
Saving Rules
Debian Based
netfilter-persistent save
RedHat Based
service iptables save
To Stop / Start / Restart the Firewall,
If you are using RHEL / CentOS / Fedora Linux, the enter the following command.
# service iptables stop
# service iptables start
# service iptables restart
List out all of the active iptables rules with verbose
iptables -n -L -v
List out all of the active iptables rules with numeric lines and verbose
iptables -n -L -v –line-numbers
Print out all of the active iptables rules
iptables -S
List Rules as Tables for INPUT chain
iptables -L INPUT
Print all of the rule specifications in the INPUT chain
iptables -S INPUT
Show Packet Counts and Aggregate Size
iptables -L INPUT -v
To display INPUT or OUTPUT chain rules with numeric lines and verbose
iptables -L INPUT -n -v
iptables -L OUTPUT -n -v --line-numbers
Delete Rule by Chain and Number
iptables -D INPUT 10
Delete Rule by Specification
iptables -D INPUT -m conntrack --ctstate INVALID -j DROP
Flush All Rules, Delete All Chains, and Accept All
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -t nat -F
iptables -t mangle -F
iptables -F
iptables -X
Flush All Chains
iptables -F
Flush a Single Chain
iptables -F INPUT
[Read more…]
Saturday, March 9, 2019
Image does not exist: https://i0.wp.com/imanudin.net/wp-content/uploads/2014/09/policyd-groups.jpg?resize=825%2C154
ມີຂັ້ນຕອນດັ່ງນີ້:
1. ເລືອກ Policies > Groups.
2. ໃນ action ເລືອກ add
3.ໃສ່ຄຳວ່າ list_domain ໃນຫ້ອງ Name ສ່ວນໃນຫ້ອງ comment ປະຫວ່າງເປົາ ແລ້ວກົດ Submit Query
4. ກັບຄືນມາລາຍການ ແລ້ວເລືອກ list_domain>Action>Change>ຫ້ອງ Disabled ເລືອກເປັນ no >Submit Query ແລ້ວກັບຄືນ
Image does not exist: https://i0.wp.com/imanudin.net/wp-content/uploads/2014/09/policyd-groups.jpg?resize=825%2C154
5. ເລືອກ list_domain>Action>Add ໃຫ້ໃສ່ຂໍ້ມູນ Name= @domain.com >Submit Query>Back to group #domain ແມ່ນໝາຍເຖິງໂດເມນຂອງທ່ານ
Image does not exist: https://i0.wp.com/imanudin.net/wp-content/uploads/2014/09/policyd-members-groups.jpg?resize=825%2C161
[Read more…]
Image does not exist: http://vavai.net/wp-content/uploads/2014/02/policyd_logo-300×130.png
ມີຂັ້ນຕອນຕິດຕັ້ງດັ່ງນີ້:
1. ເປີດໃຫ້ Policyd ທຳງານ
su - zimbra
zmprov ms `zmhostname` +zimbraServiceInstalled cbpolicyd +zimbraServiceEnabled cbpolicyd
cd
exit
2.ເປີດໃຊ້ Policyd WebUI ດ້ວຍຜູ້ໃຊ້ root
cd /opt/zimbra/httpd/htdocs/ && ln -s ../../cbpolicyd/share/webui
ຈາກນັ້ນໄປແກ້ໄຂໄຟລ໌ /opt/zimbra/cbpolicyd/share/webui/includes/config.php ແລ້ວເອົາເຄື່ອງໝາຍ “#” ໃສ່ທາງໜ້າ $DB_DSN ແລ້ວເພີ່ມອັນໃໝ່ໃສ່ກ່ອນ $DB_USER ດ້ວຍຂໍ້ມູນລຸ່ມນີ້.
[Read more…]
Thursday, March 7, 2019
Image does not exist: https://i2.wp.com/imanudin.net/wp-content/uploads/2014/09/thunderbid-different-identity.jpg?resize=493%2C437
ຖ້າໃຊ້ຮຸ່ນ 8.5 ຂຶ້ນມາເຮັດຕາມຂັ້ນຕອນນີ້ໄດ້:
1. ເຂົ້າໃຊ້ຜູ້ໃຊ້ zimbra
su - zimbra
zmprov mcf zimbraMtaSmtpdSenderLoginMaps proxy:ldap:/opt/zimbra/conf/ldap-slm.cf +zimbraMtaSmtpdSenderRestrictions reject_authenticated_sender_login_mismatch
[Read more…]
Wednesday, February 27, 2019
Image does not exist: https://i.ytimg.com/vi/7iYrw4VSjSM/hqdefault.jpg
ເປັນການປ້ອງກັນການສົ່ງເມວທີ່ບໍ່ໄດ້ມີການລັອກອິນກ່ອນ ຊຶ່ງມີຂັ້ນຕອນດັ່ງນີ້:
1. ກວດເບິ່ງ zimbraMtaSmtpdRejectUnlistedSender ແລະ zimbraMtaSmtpdRejectUnlistedRecipient ໄດ້ເປີດໃຊ້ໃນ zimbra mta?
zmprov gacf | egrep zimbraMtaSmtpdRejectUnlistedSender
zmprov gacf | egrep zimbraMtaSmtpdRejectUnlistedRecipient
ຖ້າຜົນຮັບອອກມາເປັນແບບນີ້ ແມ່ນຍັງບໍ່ໄດ້ເປີດໃຊ້
zimbraMtaSmtpdRejectUnlistedSender: no
zimbraMtaSmtpdRejectUnlistedRecipient: no
2. ເປີດໃຊ້ງານດ້ວຍຄຳສັ່ງ
zmprov mcf zimbraMtaSmtpdRejectUnlistedRecipient yes
zmprov mcf zimbraMtaSmtpdRejectUnlistedSender yes
[Read more…]
Image does not exist: https://cdn.ttgtmedia.com/ITKE/uploads/blogs.dir/25/files/2007/11/test-1.gif
1. ເປີດ command prompt.
ຕອນນີ້ ທ່ານສາມາດເຊື່ອມຕໍ່ ດ້ວຍ ໂປຣແກຣທ telnet ຕາມຄຳສັ່ດັ່ງນີ້:
telnet example.com 25
2. ພີມ ehlo example.com example.com ເປັນໂດເມນຕົວຢ່າງໃນບົດຄວາມນີ້
ehlo example.com
3. ພີມ mail from: [email protected]:
mail from: [email protected]
4. ພີມ rcpt to: [email protected], [email protected] (ອີເມວປາຍທາງ):
rcpt to: [email protected], [email protected]
5. ຂຽນເນື້ອໃນອີເມວໃຫ້ພີມ data, ຕາມດ້ວຍ subject ແລະ ຂໍ່້ຄວາມສຸດດ້ວຍເຄື່ອງໝາຍ . (ຈ້ຳເມັດ)
[Read more…]