freeBSD tutorial

Linux, Unix, Windows..

Moderator: Moderators

Postby GeoForce3 » Fri Jun 18, 2004 1:05 pm

I have some problems at configuring the freeBSD config file for using
freeBSD on a pc to act as a gateway for my Windows box. The problem is
that i don't know how to define the device drivers and the network drivers to work. I read all about recompiling a kernel but nothing helped me. The problem is how to find the irq adres and port for the devices on my machine. I tryed 14 time with the LINT and Deafault kernel config but when I try to compile the kernel it gives me and error about keyboard and other device that are not present or aren't correct configured, and of couse I adapted the config file to my machine.
P.S.
I'm using freeBSD 4.9 for i386 platform.
GeoForce3
 

Postby DenisF » Fri Jun 18, 2004 1:07 pm

Wait-a-sec, what errors [if any] do you get when using the *stock* kernel?

incompatibility with your netcard or something of that sort?
Image
[ FAQ ] :: [ Policy ] :: [ Port Forwarding Guide ] :: [ Search ]
User avatar
DenisF
Forum Admin
Forum Admin
 
Posts: 679
Joined: Mon Dec 16, 2002 9:09 pm
Location: Israhell

Postby sjaz » Fri Jun 18, 2004 8:05 pm

Dont use LINT. - LINT is evil...

What error were you getting in the kernel compile? - One is assuming you ran make buildkernel KERNCONF=YOURKERNEL then make installkernel KERNCONF=YOURKERNEL or did you build it the old way?

Also when you were doing this were you emptying /usr/obj correctly as dictated?
User avatar
sjaz
Forum Admin
Forum Admin
 
Posts: 694
Joined: Fri Feb 14, 2003 11:08 pm
Location: London, UK

Postby GeoForce3 » Wed Jun 23, 2004 10:20 am

This is the kernel configuration
machine i386
cpu I586_CPU
ident SERVER
maxusers 4
device npx0 at nexus? port IO_NPX irq 13
device loop
hints "GENERIC.hints"
options INET
options PROCFS
options COMPAT_43
options UCONSOLE
options P1003_1B #Posix P1003_1B real-time extensions
options _KPOSIX_PRIORITY_SCHEDULING
options ICMP_BANDLIM
options IPFIREWALL
options IPDIVERT
options IPFIREWALL_DEFAULT_TO_ACCEPT
device isa
device eisa
device pci
device fd0 at fdc0 drive 0
device ata
device atkbdc0 at isa? port IO_KBD
device atkbd0 at atkbdc? irq 1
device vga0 at isa?
device splash
device sc0 at isa?
device sio0 at isa? port IO_COM1 flags 0x10 irq 4
device sio1 at isa? port IO_COM2 irq 3
device sio2 at isa? disable port IO_COM3 irq 5
device sio3 at isa? disable port IO_COM4 irq 9
device ppc0 at isa? irq 7
device ppbus
device rl
device ether
device bpf
P.S.
I builded in the "traditional" way. The error is something about the keyboard.
GeoForce3
 

Postby sjaz » Wed Jun 23, 2004 11:26 pm

Hmm ... I think you've removed too much from it.
User avatar
sjaz
Forum Admin
Forum Admin
 
Posts: 694
Joined: Fri Feb 14, 2003 11:08 pm
Location: London, UK

Postby zoli » Fri Jun 25, 2004 1:32 am

hi,

I agree with sjaz... whew you want to run your system? I guess on your watch or pda.
Otherwise you may use GENERIC config file and remove things that you are sure that you do not need.
Regards,
Z
---
Zoltan Arpadffy
zoli
Forum Admin
Forum Admin
 
Posts: 785
Joined: Mon Sep 30, 2002 1:27 am
Location: Stockholm, Sweden

Postby GeoForce3 » Wed Jul 07, 2004 8:56 am

<!--QuoteBegin-zoli+Jun 25 2004, 12:32 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (zoli @ Jun 25 2004, 12:32 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> hi,

I agree with sjaz... whew you want to run your system? I guess on your watch or pda.
Otherwise you may use GENERIC config file and remove things that you are sure that you do not need. [/quote]
The kernel must be configured for a firewall, and I don't have a Intel Pentium Itanium with Hyper Threading and 1TB HDD disk, so i think that you should be so sarcastic.
GeoForce3
 

Postby sjaz » Wed Jul 07, 2004 9:18 am

I think your being incredibly rude. Both Zoli and myself are proficient admins and are aware of what constitutes the kernel in fbsd.

My gateway firewall router runs on a p133 with 32meg of ram so lose the sarcasm.

<a href='http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls.html' target='_blank'>http://www.freebsd.org/doc/en_US.ISO8859-1.../firewalls.html</a>
User avatar
sjaz
Forum Admin
Forum Admin
 
Posts: 694
Joined: Fri Feb 14, 2003 11:08 pm
Location: London, UK

Postby DenisF » Wed Jul 07, 2004 1:15 pm

My gateway firewall runs on an ARM9 [300 mips] and 8mb of SDRAM, AV IT!
Image
[ FAQ ] :: [ Policy ] :: [ Port Forwarding Guide ] :: [ Search ]
User avatar
DenisF
Forum Admin
Forum Admin
 
Posts: 679
Joined: Mon Dec 16, 2002 9:09 pm
Location: Israhell


Return to Operating systems

Who is online

Users browsing this forum: No registered users and 2 guests

cron