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 12-12-2003, 07:09 PM   #1
linedpaper
LQ Newbie
 
Registered: Dec 2003
Posts: 7

Rep: Reputation: 0
Multi Network Firewall Proxy and DHCP Problem


I just setup multi network firewall on my network. Every single time I enable a transparent proxy the internet stops working. Do I need to setup a rule in my firewall rules for this. If so what does the rule need to be? I already setup a rule enabling all ports to go out to the internet. I don't currently have any reason to block any outgoing ports. Secondly I am having a problem with the DHCP. Where can I tell it what dns addresses I want it to assign. It automatically gives itself as the dns but then you can't get out to the internet. If I manually put in my ISP's dns then everything works. I also just installed it and need to do updates on it. When I go to the updates the default ftp is there the ftp.mnf.mandrakesoft.com. I don't know what username or password to use because it doesn't find any updates when I run it. Or how can I change to a different mirror? I think that covers everything. Thank you so much for your help.

Tim
 
Old 12-12-2003, 08:01 PM   #2
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
Yes you don't want to change address when you are routing within your internal network. For example

| |
eth1 eth3
\ /
\ /
|
|
eth0
|
eth1=192.168.0.1/24
eth2=10.0.0.1/24
eth3=12.12.12.12/24
In the -nat POSTROUTING rule insert not append
iptables -t nat -I POSTROUTING -s 10.0.0.0/24 -d 192.168.0.0/24 -j ACCEPT
iptables -t nat -I POSTROUTING -s 192.168.0.0/24 -d 192.160.0.0/24 -j ACCEPT
I don't thing you need to adjust the prerouting rules, but you might.
Please let me know how it goes.
 
Old 12-12-2003, 08:30 PM   #3
linedpaper
LQ Newbie
 
Registered: Dec 2003
Posts: 7

Original Poster
Rep: Reputation: 0
I just rebooted the firewall and it started working. Still wondering about my dns issue with dhcp though.

Tim
 
Old 12-12-2003, 08:52 PM   #4
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
Did you change the iptables as I suggested or did you just reboot and it just worked?
I am cheezing out here and coping this from man dhcpd
subnet 239.252.197.0 netmask 255.255.255.0 {
range 239.252.197.10 239.252.197.250;
default-lease-time 600 max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 239.252.197.255;
option domain-name-servers 239.252.197.2, 239.252.197.3;
}
All you need to ad is the domain-name-servers line.
 
Old 12-13-2003, 03:29 AM   #5
linedpaper
LQ Newbie
 
Registered: Dec 2003
Posts: 7

Original Poster
Rep: Reputation: 0
All I did was reboot the firewall and it worked. I'm not at home so I can't check right now, but what file do I need to edit in for what you said.

Tim
 
Old 12-13-2003, 07:54 AM   #6
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
It is /etc/dhcpd.conf.
I might have misunderstood you.
Are you running a dhcp server?
This file should exist on the server that is running dhcp.
 
Old 12-13-2003, 05:09 PM   #7
linedpaper
LQ Newbie
 
Registered: Dec 2003
Posts: 7

Original Poster
Rep: Reputation: 0
MNF is running dhcp. My problem is that it won't let me manually assign dns servers. I also run dns and need to specify, I'll take a look at the file. Anyone know about the issues with not getting any updates listed?
 
Old 12-13-2003, 05:23 PM   #8
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
So your firewall is acting as a dhcp server handing out address to your internal network, and you want it to tell the machines not only what ip they should use but also what dns server to use.
With redhat the configuration file is /etc/dhcpd.conf.
What disto are you using?
 
Old 12-13-2003, 06:15 PM   #9
linedpaper
LQ Newbie
 
Registered: Dec 2003
Posts: 7

Original Poster
Rep: Reputation: 0
It is the mandrake multi network firewall. This is specifically designed to be just a firewall.
 
Old 12-13-2003, 06:26 PM   #10
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
Does this firewall act as the dhcp server for your network. Not does it aquire its address from a dhcp server.
What is the output from
ps -ef | grep dhcpd;
rpm -ql dhcp;
I am going out for the night I will get back to you tomarrow.
 
Old 12-13-2003, 08:23 PM   #11
linedpaper
LQ Newbie
 
Registered: Dec 2003
Posts: 7

Original Poster
Rep: Reputation: 0
Yes, it is the dhcp server for my network, and I have resolved this problem. It was an edit to the dhcpd.conf file.

Tim
 
  


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
Multi Network Firewall 8.2 Problems maccheesi Linux - Security 3 01-20-2005 02:35 AM
A problem with Mandrake multi network firewall boomy_4000 Linux - Security 0 07-15-2004 07:25 AM
Which Firewall, Proxy, DHCP, DNS and Email server package would you recommend? davidas Linux - Software 3 04-14-2004 04:24 AM
MDK Multi-network-firewall - where are the network logs stored? Avatar Mandriva 5 02-11-2004 08:44 PM
Multi Network Firewall Logs linedpaper Linux - Security 1 12-16-2003 05:35 PM

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

All times are GMT -5. The time now is 09:54 PM.

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