LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-11-2004, 01:24 PM   #1
eroica
Member
 
Registered: Sep 2003
Distribution: Mandriva 2006,OpenSuse 10.1
Posts: 154

Rep: Reputation: 30
Question Problem w/Shorewall?


hello,
Just installed Shorewall and it seems to be working ok after i setup policys but when I boot mandrake 9.1 i get message "Adding Common Rules
iptables v1.2.7a: host/network `dhcp' not found
Try `iptables -h' or 'iptables --help' for more information." and it says failed on the interactive startup. yet when i login and go to s. gibsons ShieldsUp and run probe every port is stealth like I set it up What gives. Can anyone explain whats happening and how do iget rid of this error message...
thanx
alan

p.s- if helpful this is on a 56k modem w/dhcp from my isp...
 
Old 03-12-2004, 01:22 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603
iptables v1.2.7a: host/network `dhcp' not found
Means the firewall script read a variable which value is "dhcp", and Iptables doesn't deal with variables called "dhcp". Run the script in debug mode ("sh -x scriptname 2>/tmp/error.log"), then check the output for where the error occurs (or check your Shorewall config files for a variable that has the value "dhcp") and correct it.
 
Old 03-13-2004, 08:19 PM   #3
eroica
Member
 
Registered: Sep 2003
Distribution: Mandriva 2006,OpenSuse 10.1
Posts: 154

Original Poster
Rep: Reputation: 30
In my /etc/shorewall/interfaces file i have the last line as "net ppp0 dhcp". Now when i delete the dhcp and restart shorewall i dont get any error message and it says shorewall started fine. The only problem is my internet connection doesnt work then. as soon as I restore the dhcp field and restart shorewall I can surf ok. But of course the above error message has returned.Any thoughts on why this is happening...

alan
 
Old 03-16-2004, 01:59 PM   #4
eroica
Member
 
Registered: Sep 2003
Distribution: Mandriva 2006,OpenSuse 10.1
Posts: 154

Original Poster
Rep: Reputation: 30
just wanted to add that I ran the debug command and the line that is causing the trouble is:
+ run_iptables -A reject -s dhcp -j DROP
+ iptables -A reject -s dhcp -j DROP
iptables v1.2.7a: host/network `dhcp' not found
Try `iptables -h' or 'iptables --help' for more information.
Doing a iptables -h i see that the -s parameter is supposed 2 be used as a source destination. But the the only place i have the dhcp variable is in the interfaces file as:
net ppp0 dhcp. is this incorrect?

alan
 
Old 04-12-2004, 05:07 AM   #5
zowey
Member
 
Registered: Feb 2004
Location: Croatia
Distribution: slackware 10.1, debian sarge, knoppix, ubuntu 7.04
Posts: 67

Rep: Reputation: 15
I have the same problem, but in my /etc/shorewall/interfaces file tags looks like this:
net ppp+ detect
masq eth0 detect
I can't start shorewall, I get this error:
ip tables v1.2.7a host/network '192.168.1.1_hosts' not found ....
and bla bla bla
can enybody tell me where I can solve this problem?
 
Old 04-12-2004, 06:48 AM   #6
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
kernel compiling
kernel modules(especially iptables ones)
/etc/hosts
is the way to solve it
 
Old 12-02-2006, 07:37 PM   #7
manchox
LQ Newbie
 
Registered: Jun 2006
Location: Bahia de Banderas, Nayarit-Mexico
Distribution: CentOS 3.4
Posts: 4

Rep: Reputation: 0
Fichero de configuración /etc/shorewall/shorewall.conf
STARTUP_ENABLED=Yes
CLAMPMSS=Yes

/etc/shorewall/zones
#ZONE DISPLAY OPTIONS
fw firewall
net ipv4
loc ipv4
dmz ipv4
#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE
#######################################
/etc/shorewall/interfaces
#ZONE INTERFACE BROADCAST OPTIONS GATEWAY
net ppp0 detect
loc eth0 detect

ó if you have net interfaces
#ZONE INTERFACE BROADCAST OPTIONS GATEWAY
net eth0 detect
loc eth1 detect

If at all there was a service of DHCP, be as client, as server or as middleman, in some of the interfaces, the option dhcp should be added to allow the communication required for this service.
#ZONE INTERFACE BROADCAST OPTIONS GATEWAY
net ppp0 detect dhcp
loc eth1 detect dhcp
##############################################
/etc/shorewall/policy
#SOURCE DEST POLICY LOG LIMIT:BURST
loc net ACCEPT
fw net ACCEPT
net all DROP info
all all REJECT info
#############################################
/etc/shorewall/masq
#INTERFACE SUBNET ADDRESS PROTO PORT(S) IPSEC
ppp0 eth0
ppp0 eth1

ó

In the following example, he/she will be carried out enmascaramiento through the interface eth0 for the nets 192.168.0.0/24 and 192.168.1.0/24:
#INTERFACE SUBNET ADDRESS PROTO PORT(S) IPSEC
eth0 192.168.0.0/24
eth0 192.168.1.0/24
#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE

with the rules implmentas like like and send
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
shorewall config question with /etc/shorewall/rules peter72 Linux - Networking 3 01-01-2007 10:33 PM
shorewall problem sanjibgupta Linux - Security 2 12-02-2006 07:24 PM
shorewall problem Kambrian Linux - Security 1 06-09-2005 03:52 PM
shorewall problem with firewall itself peter72 Linux - Networking 1 08-01-2004 02:09 PM
shorewall problem fazz Slackware 4 04-26-2004 12:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration