|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
I need to set up a firewall and DNS server on a single computer HELP PLEASE
I need to set up a firewall and a DNS server on a single computer and my problem is that i don't understand how to configure network cards for that. In fact, i don't know why there must be TWO network cards for that. All that i've done by now is to install OpenBSD, set up firewall rules, make firewall and DNS start after every rebooting and enable packet forwarding. But i don't know how to make it work like firewall and DNS should for small network of ten to twelve computers that must be connected to internet. My biggest problem is that i can't find understandable answer in any OpenBSD manual that is available to me.
So my main question would be why do i need to configure two cards. After that, how i configure them. I understand that for dynamic IP adress assignment i can configure in localhost.if dhcp NONE NONE NONE But one manual that i've seen states that in order to configure network card one must write following: inet IP-adress 255.255.255.0 NONE And it doesn't mention wether it's for static or dynamic assignment of IP adress. Can someone please help me? P.S. Sorry for my bad english. Last edited by kla; 4th June 2009 at 11:43 AM. Reason: Title |
|
|||
Well can you help then I need some desperatly
|
|
|||
Don't bump, either people will reply or they won't..
You still haven't explained why you want to setup a DNS server, what do you intend on doing with it? please explain your network topology and what you hope to accomplish.
I look forward to your response.. |
|
||||
One network interface is for your private network, the other network interface is to connect to your ISP's network:
{ISP network} -- [Router] --- {private network}All routers, OpenBSD or not, have at least two network interfaces. Many have more. Quote:
Quote:
Quote:
Quote:
|
|
|||
Here's the thing: i'm a student of computer sciences and i needed to make a small project for one of my courses that basically deals with introductory elements of networking. Because we could work in pairs on project, my colleague and i choose to configure firewall on OpenBSD. The colleague already had experience in working with OpenBSD and i wanted to configure simple packet filter firewall. I didn't have any experience with OpenBSD before. Long story short, because of some unforseen circumstances my colleague cannot work with me anymore on the project and so i alone must finish this. Our professor liked the idea so he assigned to us to configure additionaly DNS derver for small internal network inside university building. Because i didn't expected task like that and because now i work alone on that i began to panic, more because no one else i know knows anything about OpenBSD, let alone setting up of a DNS server in it. So please excuse me for all the drama but that's just because i'm afraid i can't finish the project in time.
Internal network that i need to set up DNS for is facing the internet and already haves its DNS server and i need to configure and replace that already existing with my own. The course deals with DNS theory and BIND9 configuration but we didn't learn yet how exactly to set up a DNS server so i was very puzzled when professor said that i have to configure two network cards for DNS to work. And that was pretty much all that he said on the subject. So i guess that i don't have to set up local caching nameserver nor NAT firewall, only some ordinary DNS server. But for every question i ask professor about some details or adresses i get "you should know that" answer. And i can't read configuration from existing server, so i guess there must be a way to find it with any computer in the network but i don't know how. At least now i understand what for two network cards are. Thanks for the answer, it explained me a lot. |
|
||||
I will help you, kla, with the OpenBSD-specific configuration bits. But only if you do the hardware and network configuration. And I will give you guidance, but not step-by-step instructions. For step-by-step instructions your professor will have to give me credits for completing your course.
If you're still interested, you may start by answering these questions: Internet Connection
|
|
|||
It's nice to receive some advice from a competent person, especially when it's about learning. And i am very grateful for that advice. But would you please be so kind and recommend me one of those textbooks you mention in your post that can help me to better understand how exactly DNS works?
I am, in fact, student of nature sciences with some computer science courses and i would never be a computer science professional. If i were student of hardcore computer sciences at some tehnical university i wouldn't ask for such an advice on forums because it would not be very smart way for me to try to cover up for my incompetence. It isn't very smart from me now either, but i think that i can at least try in given circumstances when i alone must do something that two students were assigned to. In our computer courses we don't get much in-deep with some things and we didn't get deep with understanding of how exactly network card or DNS physically work. I wanted at least for someone who understands how DNS and BSD really work to explain me why do i need two network cards. I got the answer and i must say it pretty good cleared out to me why there must be two network cards and what i should do next. I dont need step-by-step instructions nor did i asked for them. Thank you. |
|
||||
From the collection at www.openbsd.org/books.html#6, I would recommend TCP/IP Illustrated, Volume 1, and DNS and BIND.
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
escape single quote in sed | gosha | Programming | 5 | 9th March 2009 10:22 AM |
What computer to get for bsd and pclinux | johnlvs2run | FreeBSD General | 22 | 5th March 2009 03:32 AM |
Single instance of VLC player | maxrussell | General software and network | 1 | 8th February 2009 03:57 PM |
computer hobbyist or pro? | ephemera | Off-Topic | 26 | 3rd December 2008 04:57 AM |
What do you use your computer for? | JMJ_coder | Off-Topic | 17 | 23rd August 2008 11:08 AM |