Failure to start Firestarter under Ubuntu11.04 Solution

Source: Internet
Author: User
In the morning, I used to enable the firewall in Ubuntu11.04 and reported an error. It looks like the error in firestarter 8.04 is the same as that in firestarter. It's still a problem with the configuration file value (wondering why this problem persists) first show me the upgraded version www.linuxidc.com @ linuxidc :~ $ Lsb_release-aNoLSBmodulesareavailable.DistributorID: & nbsp

In the morning, I used to enable the firewall in Ubuntu 11.04 and reported an error. It looks like the error in firestarter 8.04 is the same as that in firestarter. It's still a problem with the configuration file values (wondering why this problem occurs)

Show me the upgraded version

Www.linuxidc.com @ linuxidc :~ $ Lsb_release-
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.04
Release: 11.04
Codename: natty

The old method is to modify the firestarter configuration file:/etc/firestarter. sh. The error is that the script does not get the parameter value. The original shell value is

# External network interface data
IP = 'lang = C/sbin/ifconfig $ IF | grep inet | cut-d:-f 2 | cut-d \-f 1'
MASK = 'lang = C/sbin/ifconfig $ IF | grep Mas | cut-d:-f 4'
BCAST = 'lang = C/sbin/ifconfig $ IF | grep Bcast: | cut-d:-f 3 | cut-d \-f 1'

The error occurs when LANG = C is set. After testing, the null value is obtained:

Www. linuxidc. om @ linuxidc :~ $ Export LANG = C
Www. linuxidc. om @ linuxidc :~ $/Sbin/ifconfig wlan0
Wlan0 Link encap :??? ???? 00: 26: c7: 76: 2e: 12
Inet ?? : 192.168.1.100 ?? : 192.168.1.255 ?? : 255.255.255.0
Inet6 ?? : Fe80: 226: c7ff: fe76: 2e12/64 Scope: Link
Up broadcast running multicast mtu: 1500 ??? : 1
????? : 89993 ?? : 0 ?? : 0 ?? : 0 ?? : 0
????? : 83451 ?? : 0 ?? : 0 ?? : 0 ?? : 0
?? : 0 ?????? 1000
???? : 68073259 (68.0 MB )???? : 13938821 (13.9 MB)

It is very easy to correct this error, or the link to the 8.04firestarter error I posted just now. In the third line of the script, add LANG = en_US and cancel LANG = C. The general content is:

#! /Bin/bash
# ----------- (Firestarter Control Script )-----------#

# Add the following line

LANG = en_US

# Intermediate

# Content

# Omitted

# External network interface data
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'
NET = $ IP/$ MASK

Good luck at last

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.