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