Fábio Rabelo
2003-Feb-10 11:07 UTC
[Shorewall-users] /sbin/shorewall: /etc/shorewall/functions: line 8: syntax errornear unexpected token
After the release of Shorewall webmin module I''ll trying to migrate from fiaif to shorewall . My dist. is Debian woody stable The first sistem instaled ( Petium 100, 1,2 GB HD, 32 MB of RAM and 2 3COM 3C905 works fine at the first try, the only thing tha I must change was to open the webmin port to internal net . The second system, is my personal firewall at home, is a 486 DX 4 100 tith 36 MB of RAM, 1 GB HD and 2 3COM 3C509 . To prevent any conflict I made a fresh install, after all necessary packages instaled, Webmin updated to 1.060, them antering at webmin, to config everything (jus like I''ve done in the pentium system !! ) when I''ll try to star shorewall, this error msg returns : Failed to start firewall : /sbin/shorewall: : command not found /sbin/shorewall: /etc/shorewall/functions: line 8: syntax error near unexpected token ` '' /sbin/shorewall: /etc/shorewall/functions: line 8: `qt() '' /sbin/shorewall: find_file: command not found /sbin/shorewall: find_file: command not found /sbin/shorewall: exec: start: not found I have no idea where to start to find out what is wrong !! the uname returns: Linux madtrek.minidns.net 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002 i486 unknown the ip addr show returns : 1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo 2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100 link/ether 00:20:af:93:44:15 brd ff:ff:ff:ff:ff:ff inet 200.162.240.121/24 brd 255.255.255.255 scope global eth0 3: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100 link/ether 00:60:97:53:b1:eb brd ff:ff:ff:ff:ff:ff inet 192.168.1.1/24 brd 192.168.1.255 scope global eth1 the ip route returns : 200.162.240.0/24 dev eth0 proto kernel scope link src 200.162.240.121 192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.1 default via 200.162.240.1 dev eth0 the lsmod returns: Module Size Used by Not tainted ipt_MASQUERADE 1216 1 (autoclean) iptable_nat 12660 1 (autoclean) [ipt_MASQUERADE] ip_conntrack 12684 1 (autoclean) [ipt_MASQUERADE iptable_nat] ip_tables 10432 4 [ipt_MASQUERADE iptable_nat] appletalk 18988 11 (autoclean) 3c509 7968 2 isa-pnp 27432 0 [3c509] and, finaly, the shorewall version returns: ''sbin/shorewall: /etc/shorewall/functions: line 8: syntax error near unexpected token ` ''sbin/shorewall: /etc/shorewall/functions: line 8: `qt() /sbin/shorewall: find_file: command not found /sbin/shorewall: find_file: command not found and do not release the cursor, I MUST change the console with "alt+fx" to kill the process !! Any idea ?!? Thank you in advance for any help !! F?bio Rabelo
Tom Eastep
2003-Feb-10 11:16 UTC
[Shorewall-users] /sbin/shorewall: /etc/shorewall/functions: line 8: syntax errornear unexpected token
F?bio Rabelo wrote:> > and, finaly, the shorewall version returns: > ''sbin/shorewall: /etc/shorewall/functions: line 8: syntax error near > unexpected token ` > ''sbin/shorewall: /etc/shorewall/functions: line 8: `qt() > /sbin/shorewall: find_file: command not found > /sbin/shorewall: find_file: command not found > > and do not release the cursor, I MUST change the console with "alt+fx" > to kill the process !! > Any idea ?!?What version of Shorewall did you think that you installed? The ''functions'' file hasn''t lived in /etc/shorewall for ages.... Again though, it looks like the file is corrupted, possibly by a Windows system. Try dos2unix. -Tom -- Tom Eastep \ Shorewall - iptables made easy Shoreline, \ http://www.shorewall.net Washington USA \ teastep@shorewall.net
Tom Eastep
2003-Feb-10 11:18 UTC
[Shorewall-users] /sbin/shorewall: /etc/shorewall/functions: line 8: syntax errornear unexpected token
Tom Eastep wrote:> F?bio Rabelo wrote: > >> >> and, finaly, the shorewall version returns: >> ''sbin/shorewall: /etc/shorewall/functions: line 8: syntax error near >> unexpected token ` >> ''sbin/shorewall: /etc/shorewall/functions: line 8: `qt() >> /sbin/shorewall: find_file: command not found >> /sbin/shorewall: find_file: command not found >> >> and do not release the cursor, I MUST change the console with >> "alt+fx" to kill the process !! >> Any idea ?!? > > > What version of Shorewall did you think that you installed? The > ''functions'' file hasn''t lived in /etc/shorewall for ages.... > > Again though, it looks like the file is corrupted, possibly by a Windows > system. Try dos2unix. > > -TomAlso, if you are going to run Shorewall under Webmin, you are going to have to have a MUCH later version of Shorewall. -Tom -- Tom Eastep \ Shorewall - iptables made easy Shoreline, \ http://www.shorewall.net Washington USA \ teastep@shorewall.net
Ben Finney
2003-Feb-10 14:02 UTC
[Shorewall-users] /sbin/shorewall: /etc/shorewall/functions: line 8: syntax errornear unexpected token
On Mon, 10 Feb 2003, Tom Eastep wrote:> F?bio Rabelo wrote: > > [Shorewall from Debian woody] > > What version of Shorewall did you think that you installed? The > ''functions'' file hasn''t lived in /etc/shorewall for ages....The most recent stable release of Debian was on 19-Jul-2002. Only security updates have been made in the stable release since then, and none to shorewall. The versions available in the different branches of Debian can be seen here: <http://packages.debian.org/cgi-bin/search_packages.pl?keywords=shorewall&searchon=names&version=all&release=all> The Debian shorewall package has few dependencies: <http://packages.debian.org/unstable/net/shorewall.html> so it should be easy to grab a later shorewall package (the .deb file) from the Debian archive and install it on the woody box. -- \ "Nothing in life is so exhilarating as to be shot at without | `\ result." -- Winston Churchill | _o__) | bignose@zip.com.au F''print 9CFE12B0 791A4267 887F520C B7AC2E51 BD41714B