


How to set up network proxy and firewall on Kirin operating system?
How to set up network proxy and firewall on Kirin operating system?
Kirin operating system is a Linux-based operating system that is widely used in government agencies, enterprises and institutions. For those users who need to set up network proxies and firewalls, Kirin OS provides a series of powerful tools and functions to meet their needs. This article will introduce how to set up network proxy and firewall on Kirin operating system, and provide corresponding code examples for readers' reference.
1. Network proxy settings
- Installing proxy software
On the Kirin operating system, you can use Squid to build a proxy server. First, use the following command to install Squid:
sudo apt-get install squid
- Configure proxy server
Edit Squid's configuration file and use the following command to open the configuration file:
sudo vim /etc/squid/squid.conf
In the configuration file, you can set the proxy server port, access control rules, etc. Here is an example:
http_port 8080 acl localnet src 192.168.0.0/16 http_access allow localnet
You can modify the configuration file according to your needs, save and exit.
- Start the proxy server
After the configuration is completed, use the following command to start the proxy server:
sudo systemctl start squid
At this point, the network proxy settings have been completed.
2. Firewall settings
- Install firewall software
On the Kirin operating system, you can use iptables to configure the firewall. First, install iptables using the following command:
sudo apt-get install iptables
- Configure firewall rules
Enter the following command in the command line to configure the firewall rules:
sudo iptables -P INPUT ACCEPT sudo iptables -P FORWARD ACCEPT sudo iptables -P OUTPUT ACCEPT sudo iptables -F
Above The command will allow all incoming, forwarding, and outgoing traffic and clear all firewall rules.
- Add firewall rules
The following is an example firewall rule to allow HTTP and SSH traffic to pass:
sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT sudo iptables -A INPUT -p tcp --dport 443 -j ACCEPT sudo iptables -A INPUT -p tcp --dport 22 -j ACCEPT sudo iptables -A INPUT -j DROP
In the above command, # The ##--dport parameter specifies the port that is allowed to pass,
-j ACCEPT means to accept the passing traffic, and
-j DROP means to deny other traffic.
- Save and apply firewall rules
sudo iptables-save > /etc/iptables/rules.v4
The above is the detailed content of How to set up network proxy and firewall on Kirin operating system?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



When setting up the firewall, many friends found that their win11 firewall advanced settings were grayed out and unable to be clicked. This may be caused by not adding a control unit, or by not opening the advanced settings in the correct way. Let’s take a look at how to solve it. Win11 firewall advanced settings gray method one: 1. First, click the start menu below, search and open "Control Panel" at the top 2. Then open "Windows Defender Firewall" 3. After entering, you can open "Advanced Settings" in the left column . Method 2: 1. If the above method cannot be opened, you can right-click "Start Menu" and open "Run" 2. Then enter "mmc" and press Enter to confirm opening. 3. After opening, click on the upper left

On AlpineLinux, you can use the iptables tool to configure and manage firewall rules. Here are the basic steps to enable or disable the firewall on AlpineLinux: Check the firewall status: sudoiptables -L If the output shows rules (for example, there are some INPUT, OUTPUT, or FORWARD rules), the firewall is enabled. If the output is empty, the firewall is currently disabled. Enable firewall: sudoiptables-PINPUTACCEPTsudoiptables-POUTPUTACCEPTsudoiptables-PFORWARDAC

Many friends who use win10 system find that there is a firewall logo on the icon on the computer desktop. What is going on? This makes many friends with obsessive-compulsive disorder particularly uncomfortable. In fact, we only need to open the control panel and click " It can be solved by changing "Change User Account Control Settings". Let's take a look at the specific tutorial. How to cancel the firewall logo on the desktop icon in Windows 10 1. First, right-click the Start menu button next to the computer startup screen, and then select the Control Panel function from the pop-up menu. 2. Then select the "User Account" option and select the "Change User Account Control Settings" item from the new interface that appears. 3. After adjusting the slider in the window to the bottom, click Confirm to exit.

UFW, also known as Uncomplex Firewall, is adopted by many Linux distributions as their firewall system. UFW is designed to make it easy for novice users to manage firewall settings through both the command line interface and the graphical user interface. A UFW firewall is a system that monitors network traffic according to set rules to protect the network from network sniffing and other attacks. If you have UFW installed on your Linux system but its status shows as inactive, there could be several reasons. In this guide, I will share how to resolve the UFW firewall inactive issue on Linux systems. Why UFW Shows Inactive Status on Linux Why UFW Is Inactive by Default on Linux How to Inactive on Linux

How to quickly restore and reinstall the system on Kirin operating system? Kirin operating system is a Linux-based open source operating system independently developed in China and is highly praised for its stability and security. However, due to various reasons, we will inevitably encounter system crashes, software problems, etc. when using Kirin operating system. In order to solve these problems, we need to learn to quickly restore and reinstall the system. This article will introduce how to quickly restore and reinstall the system on Kirin operating system. System quick recovery: On Kirin operating system, we can use

How to configure and use printers and scanners on Kirin operating system? As an operating system based on Linux distributions, Kirin operating system is widely used in China. In order to meet the needs of different users, Kirin operating system provides easy-to-use printer and scanner configuration and use methods. This article will tell you how to configure and use printers and scanners on Kirin OS, and provide corresponding code examples. Printer configuration and use Kirin operating system uses CUPS (Common UNIX Printing System) as printing

How to install and manage fonts on Kirin OS? Kirin operating system is an open source operating system based on Linux. It is loved by the majority of users for its stability and security. For designers, typographers, or users who need to customize fonts, it is very important to install and manage fonts correctly. This article will introduce how to install and manage fonts on Kirin operating system and provide corresponding code examples. The font directory used by Kirin operating system to install fonts is /usr/share/fonts. We can

How to solve the problem that the Edge browser is blocked by the firewall? Edge browser is Microsoft's own browser. Some users found that this browser was blocked by the firewall during use. So what's going on? Let this site give users a detailed introduction on how to recover the Edge browser if it is blocked by the firewall. How to restore the Edge browser if it is blocked by the firewall? 1. Check the firewall settings: - Click the "Start" button on the Windows taskbar, and then open "Settings". -In the Settings window, select Update & Security. -exist
