How to solve the problem of Firestarter startup-Linux Enterprise Application-Linux server application information. See the following for details. I am used to using windows. I don't have a firewall, so I always feel that I can't bear it. Fortunately, firestarter is included in ubuntu. It's useless to manage it. After I install it, I will see the result.
The device eth0 is not ready
The method is as follows:
This problem is caused by software upgrades. The Firestarter STARTUP script is stupid and searches for the configuration information of related interfaces from the output information of ifconfig. In the past, it must be an English string. Now, because the output information of ifconfig is changed to Chinese, some parameter information may not be available, resulting in startup failure.
Check the Firestarter STARTUP script. The Firestarter STARTUP script is/etc/init. d/firestarter, where/etc/firestarter is executed. sh to start the firewall. Therefore, the real STARTUP script of Firestarter is/etc/firestarter. sh.
Method 1: edit/etc/firestarter. sh
Modify the following lines of code based on the output information of the local ifconfig:
IP = '/sbin/ifconfig $ IF | grep inet | cut-d:-f 2 | cut-d \-f 1'
MASK = '/sbin/ifconfig $ IF | grep Mas | cut-d:-f 4'
BCAST = '/sbin/ifconfig $ IF | grep Bcast: | cut-d:-f 3 | cut-d \-f 1'
For example, if my system uses eth0 to access the Internet, execute ifconfig eth0. The IP address can still be obtained through the first line of the above Code, but the subnet mask and broadcast address may be obtained incorrectly. Therefore, the first line is retained, and the English string searched by grep in the last two lines of code is changed to the corresponding Chinese string.
After saving the file, start Firestarter. Everything works.
Method 2: sudo vi/etc/firestarter. sh
Find a suitable place, for example, in
# External network interface data
Add a line above this line of comment:
LANG = en_US
In this way, the output of ifconfig is in English, and the startup script can search for the required parameters from its output information. This method is simpler, and it seems more universal.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.