gdm

2003-11-28 Thread Aaron Walker
I just installed FreeBSD 4.9, and am trying to setup GDM.  At first, gdm 
wouldn't run because it complained about the gdm user not existing.  I 
fixed that by created the gdm user and the gdm group.  Now, gdm runs 
fine, but I cannot find the config file for gdm, which should be in 
/etc/X11/gdm, but there is no such directory.  Is this config file 
located elsewhere by default in FreeBSD?

Thanks,
Aaron
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


compiler errors on freebsd; compiles fine on linux

2003-11-28 Thread Aaron Walker
I am attempting to write a http server (mainly just to learn), and I 
installed FreeBSD on my other box (I have Gentoo linux on my main box) 
to test the code to make sure its compatible with both BSD and Linux. 
The code compiles fine on linux, but I am getting weird compiler errors 
under FBSD.

all my source files compile fine except main.c:

#include 
#include 
#include "lwhttpd.h"
#include "server.h"
int main(int argc, char *argv[])
{
struct in_addr local_addr;
uint16_t port;
/* setup defaults */
verbose = 1;
local_addr.s_addr = INADDR_ANY;
port = 0;
nchildren = 5;
server_init(local_addr, port);
return 0;
}
gcc -c -g main.c produces:

In file included from main.c:1:
/usr/include/netinet/in.h:235: syntax error before `in_addr_t'
/usr/include/netinet/in.h:287: syntax error before `u_char'
In file included from /usr/include/netinet/in.h:487,
 from main.c:1:
/usr/include/netinet6/in6.h:122: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:144: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:149: syntax error before `u_int32_t'
/usr/include/netinet6/in6.h:608: syntax error before `struct'
/usr/include/netinet6/in6.h:610: syntax error before `__P'
/usr/include/netinet6/in6.h:611: syntax error before `__P'
/usr/include/netinet6/in6.h:612: syntax error before `__P'
/usr/include/netinet6/in6.h:614: syntax error before `*'
/usr/include/netinet6/in6.h:615: syntax error before `__P'
/usr/include/netinet6/in6.h:616: syntax error before `__P'
/usr/include/netinet6/in6.h:618: syntax error before `inet6_rthdr_space'
/usr/include/netinet6/in6.h:619: syntax error before `__P'
/usr/include/netinet6/in6.h:620: syntax error before `__P'
/usr/include/netinet6/in6.h:622: syntax error before `__P'
/usr/include/netinet6/in6.h:626: syntax error before `__P'
/usr/include/netinet6/in6.h:627: syntax error before `__P'
/usr/include/netinet6/in6.h:628: syntax error before `__P'
/usr/include/netinet6/in6.h:630: syntax error before `__P'
/usr/include/netinet6/in6.h:631: syntax error before `__P'
/usr/include/netinet6/in6.h:633: syntax error before `__P'
/usr/include/netinet6/in6.h:634: syntax error before `__P'
/usr/include/netinet6/in6.h:636: syntax error before `__P'
/usr/include/netinet6/in6.h:638: syntax error before `__P'
/usr/include/netinet6/in6.h:640: syntax error before `__P'
/usr/include/netinet6/in6.h:641: syntax error before `inet6_rth_space'
/usr/include/netinet6/in6.h:642: syntax error before `__P'
/usr/include/netinet6/in6.h:643: syntax error before `__P'
/usr/include/netinet6/in6.h:644: syntax error before `__P'
/usr/include/netinet6/in6.h:645: syntax error before `__P'
/usr/include/netinet6/in6.h:646: syntax error before `__P'
In file included from /usr/include/sys/inttypes.h:9,
 from /usr/include/sys/types.h:48,
 from main.c:2:
/usr/include/machine/ansi.h:118: syntax error before `typedef'
main.c: In function `main':
main.c:15: structure has no member named `s_addr'
Any ideas why I am getting these errors?

Obviously something with the headers, but why?

I especially don't understand why s_addr would not be a memer of struct 
in_addr, because isn't that specified my POSIX?

Sorry for the long post and thanks.

Aaron

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


which version of automake/autoconf?

2003-11-28 Thread Aaron Walker
I was getting ready to install the automake and autoconf ports, when I 
noticed there's 4 different versions of each.  How do I know which ones 
to install?

Thanks,
Aaron
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Gnome installing Mozilla by default

2004-07-01 Thread Aaron Walker
Roop Nanuwa wrote:
I'll join in on the praise for Opera. It really is the best web browser
that's extremely light but still has all the "modern day" features
one would expect from a web browser and then some. I will warn you
about a couple of things, though.
1] The native FreeBSD version is not going to run Flash. I've pulled
out many, many hairs about this but have never gotten the two to
work together. If you want to view Flash, then install the linux-opera
port.
2] You'll be spoiled after using Opera for any length of time. I've been
using Opera for a long time and I simply can't tolerate any other browsers.
The feature set it provides is so expansive that other browsers will seem
utterly gutted in comparison. Ever use vi for a while and then notice that
random ':w' or ':wq' start appearing in places where they shouldn't because
you've gotten so used to the commands? Same idea here.
3] The default interface is not for everyone. Just realize that the interface
is highly configurable so don't let it turn you off if it's not to your liking.
--roop
Just curious, but which version of flash are you using with Opera?  I 
did a search of the ports tree and found quite a few flash ports and was 
confused on which one to install.

Thanks
--
Save energy:  Drive a smaller shell.
/*  Aaron Walker
 *  http://butsugenjitemple.org/~ka0ttic/
 */
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2004-07-08 Thread Aaron Walker
Miguel Cardenas wrote:
Hello
Am new to FreeBSD... just installed it for 2nd time today, but don't know what 
I did that it didn't ask me for the network configuration (ip, domain, 
etc)... once installed, is there a command to perform that task?

I'm linux user, so am familiar to *nix systems, but don't know how to 
configure the network specifically on freebsd...

Thanks for any comment,
Mike
As another person suggested, try checking out the FreeBSD Handbook at 
freebsd.org, which pretty much describes everything you need to know 
when getting started w/FBSD.

Since, no one has suggested this yet, I will:  you can go back into the 
installer utility by running /stand/sysinstall.  The installer comes in 
handy quite a bit when you don't know the actually commands to do 
something (ie setting up a network interface or partitioning a disk).

Once you run /stand/sysinstall, you can scroll all the way to the bottom 
and select 'Index' and then select 'Network Interfaces'.

HTH
--
Don't you wish that all the people who sincerely want to help you
could agree with each other?
/*  Aaron Walker
 *  http://butsugenjitemple.org/~ka0ttic/
 */
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: /etc/make.conf info

2004-07-20 Thread Aaron Walker
Matthew Seaman wrote:
On Mon, Jul 19, 2004 at 10:42:08AM +0200, Wojciech Puchar wrote:
where can i find info about possible options in make.conf for ports
builder

Look at the ports(7) man page and the default make.conf (which is
/etc/defaults/make.conf under 4.x, and
/usr/share/examples/etc/make.conf in 5.x, or you can look at it in CVS
via
http://www.freebsd.org/cgi/cvsweb.cgi/src/share/examples/etc/make.conf )
Otherwise, port specific make flags can be found generally by
inspecting the Makefiles for each port, or the Makefiles under
/usr/ports/Mk.  Each of the Makefiles in /usr/ports/Mk has a long
pre-amble documenting the various settings available. The convention
is that variables starting 'WITH_' 'WITHOUT_' or 'WANT_' are
user-settable; variables starting 'USE_' are for the port maintainer
to deal with.  Any section marked 'OPTIONS' causes the port to
generate a popup menu allowing you to set the various flags listed
either as 'WITH_FOO' or 'WITHOUT_FOO' -- those values are retained
under /var/db/ports so you won't get the menu popup the second or
subsequent times you make that port unless you specifically run 'make
reconfig'.
Note too that there are a number of ports that have variable settings
which pre-date this convention: in those cases, you'll have to figure
out from context what is user-settable and what isn't.
Also note: most people find that using portupgrade(1) and friends to
manage their ports gives best results.  In which case, you can enter
those make variables into the MAKE_ARGS array in
/usr/local/etc/pkgtools.conf -- one big advantage of doing that is it
allows you to apply the make argument to building a specific port.  I
don't think there are any such conflicts, but there's no guarrantee
that two ports won't use the same make variable with conflicting
meanings.
Cheers,
Matthew
Just to add to what Matthew said, there is also a manual page for make.conf:
$ man make.conf
Cheers
--
Riffle West Virginia is so small that the Boy Scout had to double as the
town drunk.
/*  Aaron Walker
 *  http://butsugenjitemple.org/~ka0ttic/
 */
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


getting a current system

2004-04-15 Thread Aaron Walker
I've been trying to get an up-to-date FreeBSD system running for the
past 2 weeks, but keep running into problems.  I've tried both 5.2.1 and
4.9 (with 4.9 giving me more problems believe it or not).  I'm pretty
sure I followed the steps in the handbook correctly, but I might be
wrong.  Basically, I'd like to verify that I am doing this correctly. 
Right after a fresh install I have been doing:

 - Editing supfiles in /usr/share/examples/cvsup.  Specifically, the
doc-supfile, ports-supfile and (stable-supfile for 4.9 and
standard-supfile for 5.2.1).  Changed the CVS host and the default base
to /usr/local/etc/cvsup
 - Ran 'cvsup -g -L 2 SUPFILE' for the supfiles above that were edited.
 - Created /etc/make.conf with simple flags:
CPUTYPE=athlon-xp
CFLAGS=-O -pipe
MAKE_SHELL=sh
NOPROFILE=true
 - Ran 'mergemaster -p' to check if any config changes are needed before
running 'make buildworld' 
 - cd /usr/src && make -j4 buildworld
 - make buildkernel (for now I have just used the GENERIC until I get
this all working)
 - make installkernel
 - Reboot to single-user mode
 - make installworld
 - mergemaster

Is this all that is needed to update the system?  4.9 gave me the most
problems during and after the above steps.  I am really determined to
get this working, despite all the problems I am having.  A fresh install
of 5.2.1 has just finished, so I am gonna try this again (hopefully with
the help of you guys).

Thanks,
Aaron

-- 
Aaron Walker <[EMAIL PROTECTED]>
http://ka0ttic.dyndns.org/

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: getting a current system

2004-04-16 Thread Aaron Walker
On Fri, 2004-04-16 at 01:54, jens wrote:
> Hello Aaron, 
> 
> Could you give us the output of the different error messages you got
> during this upgrading? You described in detail what you did but did
> not describe the errors.
> 

I will try those steps again (I was waiting for feedback to make sure I
was doing it right) and record any errors.  After pulling my hair out
for the last week or two over this, I finally decided to record
everything I was doing last night.  Will post any errors later on today
(watch it work ;)).

Thanks again guys.

-- 
Aaron Walker <[EMAIL PROTECTED]>
http://ka0ttic.dyndns.org/

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


problems with ipfw

2003-02-27 Thread Aaron Walker
Hello,

I installed FBSD 4.7 a couple days ago on an old P100 to replace my
linksys cable router.  I've rebuilt the kernel and have done everything
else to enable the machine to act as router/firewall.  The only problems
I am having is setting up the ipfw rules.  I've spent the last 2 days
trying to set them up and can't get anything to work (unless of course I
set the firewall type to open).  I'm to the point where I almost have no
hair left from pulling it out over the last 48hrs :) In pseudocode, this
is what I'd like to do:

allow icmp traffic in and out (certain ones that are necessary for apps
that depend on them)
allow email in and out
allow smb in via internal nic
allow limewire/gnutella in and out
allow ssh in via internal nic
allow aim in and out
allow port 80 in via internal and external nic
allow irc in and out
allow ntp in and out
default to deny

with the following rules, I haven't tested whether gnutella or smb works
but ssh works, and aim will not work.. I even verified that the aim
client is running on the proper port, but it doesnt matter.

also, with ssh.. why is it that if the firewall type is open I can
connect to the FreeBSD box instantly, but if I specify all the rules, it
takes 10+ seconds for me to get a password prompt.. any ideas?

and here is my modified version of the simple fw in /etc/rc.firewall. 
Can anyone see anything wrong with the following?

# external net
oif="ep0"
onet="24.26.107"
omask="0xfe00"
oip="me"
#internal net
iif="xl0"
inet="192.168.1.0"
imask="255.255.255.0"
iip="192.168.1.1"

fwcmd="/sbin/ipfw"

${fwcmd} add 100 pass all from any to any via lo0
${fwcmd} add 200 deny all from any to 127.0.0.0/8
${fwcmd} add 300 deny ip from 127.0.0.0/8 to any

${fwcmd} -f flush

# Stop spoofing
${fwcmd} add deny all from ${inet}:${imask} to any in via ${oif}
${fwcmd} add deny all from ${onet}:${omask} to any in via ${iif}

# Stop RFC1918 nets on the outside interface
${fwcmd} add deny all from any to 10.0.0.0/8 via ${oif}
${fwcmd} add deny all from any to 172.16.0.0/12 via ${oif}
${fwcmd} add deny all from any to 192.168.0.0/16 via ${oif}

# Stop draft-manning-dsua-03.txt (1 May 2000) nets (includes RESERVED-1,
# DHCP auto-configuration, NET-TEST, MULTICAST (class D), and class E)
# on the outside interface
${fwcmd} add deny all from any to 0.0.0.0/8 via ${oif}
${fwcmd} add deny all from any to 169.254.0.0/16 via ${oif}
${fwcmd} add deny all from any to 192.0.2.0/24 via ${oif}
${fwcmd} add deny all from any to 224.0.0.0/4 via ${oif}
${fwcmd} add deny all from any to 240.0.0.0/4 via ${oif}

#natd
${fwcmd} add divert natd all from any to any via ${oif}

# Stop RFC1918 nets on the outside interface
${fwcmd} add deny all from 10.0.0.0/8 to any via ${oif}
${fwcmd} add deny all from 172.16.0.0/12 to any via ${oif}
${fwcmd} add deny all from 192.168.0.0/16 to any via ${oif}

# Stop draft-manning-dsua-03.txt (1 May 2000) nets (includes RESERVED-1,
# DHCP auto-configuration, NET-TEST, MULTICAST (class D), and class E)
# on the outside interface
${fwcmd} add deny all from 0.0.0.0/8 to any via ${oif}
${fwcmd} add deny all from 169.254.0.0/16 to any via ${oif}
${fwcmd} add deny all from 192.0.2.0/24 to any via ${oif}
${fwcmd} add deny all from 224.0.0.0/4 to any via ${oif}
${fwcmd} add deny all from 240.0.0.0/4 to any via ${oif}

${fwcmd} add allow icmp from any to any icmptypes 0,3,5,8,11

# Allow TCP through if setup succeeded
${fwcmd} add pass tcp from any to any established

# Allow IP fragments to pass through
${fwcmd} add pass all from any to any frag

# Allow setup of incoming email
${fwcmd} add pass tcp from any to ${oip} 25 setup

#smb
${fwcmd} add allow tcp from ${inet} to ${iip} 137-139 in via ${iif}

# Limewire/Gnutella
${fwcmd} add allow tcp from any to any 6346 in via ${oif}
${fwcmd} add allow tcp from any 6346 to any out via ${oif}

# ssh
${fwcmd} add allow log all from ${inet} 22 to ${iip} 22 in via ${iif}

# AIM
${fwcmd} add pass tcp from any to ${oip} 5190 in via ${oif}
${fwcmd} add pass tcp from any to any 5190 out via ${oif}

# Allow access to our DNS
# DO I NEED THIS IF IM NOT RUNNING A DNS SERVER?
${fwcmd} add pass tcp from any to ${oip} 53 setup
${fwcmd} add pass udp from any to ${oip} 53
${fwcmd} add pass udp from ${oip} 53 to any

# Allow access to our WWW
${fwcmd} add pass tcp from any to ${oip} 80 setup

# Allow access to IDENT/IRC
${fwcmd} add allow tcp from any to ${oip} 194
${fwcmd} add allow udp from any to ${oip} 194
${fwcmd} add allow tcp from any to ${oip} 113
${fwcmd} add allow udp from any to ${oip} 113   

# Allow setup of any other TCP connection
${fwcmd} add pass tcp from any to any setup

# Allow DNS queries out in the world
${fwcmd} add pass udp from ${oip} to any 53 keep-state

# Allow NTP queries out in the world
${fwcmd} add pass udp from ${oip} to any 123 keep-state

${fwcmd} add allow tcp from me to any setup keep-state
${fwcmd} add allow udp from me to any keep-state

${fwcmd} add allow ip from ${inet} to any out via ${oif}

--
Thanks,

full/half duplex

2003-02-27 Thread Aaron Walker
I have a 3Com 3c900-Combo and ifconfig is reporting that it was in
half-duplex mode, so I booted up my 3com dos utility book disk and
checked and it was at half-duplex so I changed it to full.  ifconfig is
still reporting it being half-duplex.  Do I need to reinstall the driver
or something? How would I go about it?

Please let me know if you have any ideas.

Thanks




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


FreeBSD & Threads?

2003-02-28 Thread Aaron Walker
Does FreeBSD support POSIX threads?  I was reading R. Steven's UNIX
Network Programming last night at work, and he stated that 4.4BSD did
not support threads, so I was just wondering if FBSD did.. I hope so. 
Now that I have my firewall setup, I'm ready to do some coding in FBSD. 
Please let me know.

Thanks



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


disabling inetd & sendmail

2003-02-28 Thread Aaron Walker
I am trying to disable inetd and sendmail so that they do not start up
when my router/firewall boots up.  I have the following in /etc/rc.conf
but it doesnt do any good:

inetd_enable="NO"
sendmail_enable="NO"

how do I go about disabling these?

thanks,
Aaron




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


please help: nntp and gaming with ipfw

2003-03-06 Thread Aaron Walker
I have FreeBSD 4.7 running on my old p100 setup as a firewall..
everything works except for 2 things: nntp (it somewhat works) and
playing a game through the firewall from a windows box (battlefield 1942
specifically)

With nntp I can view newsgroups but I get a lot of lag.. more like it
freezes.. in mozilla mail when I click on a message on a newsgroup, it
just sits there and says "Loading document..." in the status bar.
Sometimes it works, but the majority of the time I have that problem.  I
know it is not mozilla that is the problem because I can produce it on
my windows box with other news clients.  Here is the output of "ipfw
show | grep 119"

00425   30925   1359340 allow tcp from any to any 119 keep-state out
xmit ep0 setup
00426   0 0 allow udp from any to any 119 keep-state out
xmit ep0
00605   0 0 allow tcp from any 119 to any keep-state in recv
ep0 setup
00606   0 0 allow udp from any 119 to any keep-state in recv
ep0

if its not the firewall and these rules are ok, then what else could it
be?


With Battlefield 1942.. it uses port 14567.  I cant get this to work at
all.

I have the following in my firewall rules:

00335   0   0 allow tcp from any 14567 to any keep-state out xmit ep0 setup

00336   0   0 allow udp from any 14567 to any keep-state out xmit ep0

00620   0   0 allow tcp from any to any 14567 keep-state in recv ep0 setup

00621   0   0 allow udp from any to any 14567 keep-state in recv ep0

any ideas what's wrong with these rules?

any help is greatly appreciated.

Thanks,
Aaron



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


Re: please help: nntp and gaming with ipfw

2003-03-06 Thread Aaron Walker
Doh.. I meant to add that I have neither of these problems when I hook
my network back up to my old linksys cable/dsl firewall/router.. I am
hoping I can fix this because otherwise it would be pointless to use the
freebsd box as the firewall/gateway, as I don't really want to run
downstairs and make the switch every time I'd like to use usenet or play
a few rounds of bf...

On Thu, 2003-03-06 at 07:43, Aaron Walker wrote:
> I have FreeBSD 4.7 running on my old p100 setup as a firewall..
> everything works except for 2 things: nntp (it somewhat works) and
> playing a game through the firewall from a windows box (battlefield 1942
> specifically)
> 
> With nntp I can view newsgroups but I get a lot of lag.. more like it
> freezes.. in mozilla mail when I click on a message on a newsgroup, it
> just sits there and says "Loading document..." in the status bar.
> Sometimes it works, but the majority of the time I have that problem.  I
> know it is not mozilla that is the problem because I can produce it on
> my windows box with other news clients.  Here is the output of "ipfw
> show | grep 119"
> 
> 00425   30925   1359340 allow tcp from any to any 119 keep-state out
> xmit ep0 setup
> 00426   0 0 allow udp from any to any 119 keep-state out
> xmit ep0
> 00605   0 0 allow tcp from any 119 to any keep-state in recv
> ep0 setup
> 00606   0 0 allow udp from any 119 to any keep-state in recv
> ep0
> 
> if its not the firewall and these rules are ok, then what else could it
> be?
> 
> 
> With Battlefield 1942.. it uses port 14567.  I cant get this to work at
> all.
> 
> I have the following in my firewall rules:
> 
> 00335 0   0 allow tcp from any 14567 to any keep-state out xmit ep0 setup
> 
> 00336 0   0 allow udp from any 14567 to any keep-state out xmit ep0
> 
> 00620 0   0 allow tcp from any to any 14567 keep-state in recv ep0 setup
> 
> 00621 0   0 allow udp from any to any 14567 keep-state in recv ep0
> 
> any ideas what's wrong with these rules?
> 
> any help is greatly appreciated.
> 
> Thanks,
> Aaron
> 
> 
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


Re: please help: nntp and gaming with ipfw

2003-03-06 Thread Aaron Walker
I have cut & paste the entire out put from "ipfw show" and ifconfig at
the bottom of this message.

On Thu, 2003-03-06 at 09:07, Bill Moran wrote:
> Aaron Walker wrote:
> > I have FreeBSD 4.7 running on my old p100 setup as a firewall..
> > everything works except for 2 things: nntp (it somewhat works) and
> > playing a game through the firewall from a windows box (battlefield 1942
> > specifically)
> > 
> > With nntp I can view newsgroups but I get a lot of lag.. more like it
> > freezes.. in mozilla mail when I click on a message on a newsgroup, it
> > just sits there and says "Loading document..." in the status bar.
> > Sometimes it works, but the majority of the time I have that problem  I
> > know it is not mozilla that is the problem because I can produce it on
> > my windows box with other news clients.  Here is the output of "ipfw
> > show | grep 119"
> > 
> > 00425   30925   1359340 allow tcp from any to any 119 keep-state out
> > xmit ep0 setup
> > 00426   0 0 allow udp from any to any 119 keep-state out
> > xmit ep0
> > 00605   0 0 allow tcp from any 119 to any keep-state in recv
> > ep0 setup
> > 00606   0 0 allow udp from any 119 to any keep-state in recv
> > ep0
> > 
> > if its not the firewall and these rules are ok, then what else could it
> > be?
> 
> I have no idea.  There's no way to tell if those rules are OK without the
> rest of the firewall rules.  Are they before or after your divert rule?  Are
> there rules before them that could be cacthing traffic and handling it wrong?
> 
> > With Battlefield 1942.. it uses port 14567.  I cant get this to work at
> > all.
> > 
> > I have the following in my firewall rules:
> > 
> > 00335   0   0 allow tcp from any 14567 to any keep-state out xmit ep0 setup
> > 
> > 00336   0   0 allow udp from any 14567 to any keep-state out xmit ep0
> > 
> > 00620   0   0 allow tcp from any to any 14567 keep-state in recv ep0 setup
> > 
> > 00621   0   0 allow udp from any to any 14567 keep-state in recv ep0
> 
> Same problem ... it's almost impossible to diagnose ifpw problems without the
> entire ipfw ruleset.
> 
> > any ideas what's wrong with these rules?
> 
> I can give you 1000 guesses ...
> 
> > any help is greatly appreciated.
> 
> Please post the entire ruleset as well as the output from ifconfig.  Then we'll
> have enough information to make some guesses as to what's wrong.
> 
> -- 
> Bill Moran
> Potential Technologies
> http://www.potentialtech.com
> 


00100  36  1800 allow ip from any to any via lo0
00110   0 0 deny log logamount 100 ip from any to
127.0.0.0/8
00120   0 0 deny log logamount 100 ip from 127.0.0.0/8 to
any
00130   0 0 allow tcp from 192.168.1.0 22 to 192.168.1.1 22
in recv xl0
00150  500832 388399050 divert 8668 ip from any to any via ep0
00200   0 0 check-state
00210 1101024 807028279 allow ip from any to any keep-state via xl0
00250   0 0 deny ip from any to any in recv ep0 frag
002602227246865 deny tcp from any to any in recv ep0 established
00300  165208   8180966 allow tcp from any to any 80 keep-state out xmit
ep0 setup
003012091533681 allow tcp from any to any 443 keep-state out
xmit ep0 setup
00310   0 0 allow tcp from any to 24.95.227.36 53 keep-state
out xmit ep0 setup
003111240 88966 allow udp from any to 24.95.227.36 53 keep-state
out xmit ep0
00312   0 0 allow tcp from any to 24.52.201.67 53 keep-state
out xmit ep0 setup
00313   0 0 allow udp from any to 24.52.201.67 53 keep-state
out xmit ep0
00314   0 0 allow tcp from any to 24.95.227.34 53 keep-state
out xmit ep0 setup
00315   167 allow udp from any to 24.95.227.34 53 keep-state
out xmit ep0
00316   0 0 allow tcp from any to 24.95.227.35 53 keep-state
out xmit ep0 setup
00317   0 0 allow udp from any to 24.95.227.35 53 keep-state
out xmit ep0
00330  13  2992 allow tcp from any to any 25 keep-state out xmit
ep0 setup
003316080269163 allow tcp from any to any 110 keep-state out
xmit ep0 setup
00335   0 0 allow tcp from any 14567 to any keep-state out
xmit ep0 setup
00336   0 0 allow udp from any 14567 to any keep-state out
xmit ep0
00340   0 0 allow tcp from me to any uid root keep-state out
xmit ep0 setup
00342   0 0 allow udp from me to any 33435-33500 keep-state
out xmit ep0
00343   0 0 allow log logamount 100 icmp from any to me
limit src-addr 2 in recv ep0 icmptype 3,11
00350  48  4613 allow 

Booting 5.0 from GRUB

2003-03-07 Thread Aaron Walker
I had FBSD 4.7 installed on my second hard drive, with linux on the
first and using GRUB as the boot loader.  With the following in my
/etc/grub.conf 

title   FreeBSD 4.7 
root(hd1,0,a) 
kernel /boot/loader 

this booted 4.7 fine, but fails when trying to boot 5.0 which I just did
a fresh install.. I get the following error:

Booting 'FreeBSD 5.0'

root(hd1,0,a)
  Filesystem type is ffs, partition type 0xa5
kernel /boot/loader

Error 15:  File not found

Any idea why /boot/loader wouldnt exist?  This is a fresh install of
5.0.. I haven't even booted it up yet, since I can't get this to work.  

Thanks,
Aaron



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


undefined reference to 'pthread_detach'

2003-03-08 Thread Aaron Walker
I was writing a little test threads program, and when I try to compile I
get this:

$gcc -o mttest mttest.c -lpthread
/tmp/cco18ppz.o: In function `thread_func':
/tmp/cco18ppz.o(.text+0xd2): undefined reference to `pthread_detach'

I don't understand why I am getting this since pthread.h is included and
I am including the library when compiling.  the code is below.. any one
have any ideas?

here is the code:
#include 
#include 
#include 
#include 

#define _REENTRANT
#define _POSIX_SOURCE

void * thread_func(void *);

int main(int argc, char **argv)
{
  int i, r, n, nthreads;
  pthread_t t;

  if(argc != 2) {
fprintf(stderr, "argc != 2\n");
exit(1);
  }

  n = atoi(argv[1]);
  nthreads = 0;

  for(i=0;i

slice X?

2004-02-28 Thread Aaron Walker
I have installed FreeBSD before, but it has been a while since I've
messed around with it.  I am attempting to install on my secondary
desktop machine which also runs Linux.

ad0s1-ad0s3 are linux partitions as well as ad0s4 which is an extended
partition (containing more linux partitions).

When I try to create a new slice, it gives it the name 'X' which causes
a problem when I try to create new partitions on that slice:

Unable to create partitons on device: /dev/X


I didn't see anything about this in the FAQ.
Anyone have any ideas?

Thanks,
Aaron

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: slice X?

2004-02-29 Thread Aaron Walker
On Sun, 2004-02-29 at 02:56, Cordula's Web wrote:
> > When I try to create a new slice, it gives it the name 'X' which causes
> > a problem when I try to create new partitions on that slice:
> > 
> > Unable to create partitons on device: /dev/X
> 
> This happens when sysinstall runs out of valid slice names.
> Try using less file systems per partition...


I figured it was because there were no free primary partitions (all free
space was in linux extended partition).

This was solved simply by deleting ALL linux partitions ;)

Thanks,
Aaron

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


booting 5.2.1 from grub

2004-03-04 Thread Aaron Walker
On my secondary desktop machine, that I use for testing purposes, I have
it setup to triple-boot Gentoo Linux/FreeBSD/OpenBSD.

I had fbsd 4.9 installed and the following in grub.conf worked:

root (hd0,1,a)
kernel /boot/loader

I just installed 5.2.1 on the same partitions, but it cannot boot with
the above config.  Has something changed between 4.9 => 5.2.1?  What do
I need to change to get it to boot?

Thanks,
Aaron

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: booting 5.2.1 from grub

2004-03-04 Thread Aaron Walker
I just setup grub to use chainloading (to get around the unsupported
ufs2), so now it boots.. however, when booting, it hangs at:

Timecounter "TSC" frequency 2153331273 Hz quality 800
Timecounters tick every 10.000 msec

It also did this when trying to boot via the 5.2.1 install CD, which was
circumvented by booting via floppy... 

any ideas?

Thanks,
Aaron


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


5.2.1 hanging on boot

2004-03-06 Thread Aaron Walker
I just installed 5.2.1 and upon boot, it hangs at:

Timecounter "TSC" frequency 2153331273 Hz quality 800
Timecounters tick every 10.000 msec

It also did this when trying to boot via the 5.2.1 install CD, which was
circumvented by booting via floppy... 

It does not do this with 4.9. 

any ideas?

Thanks,
Aaron


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 5.2.1 hanging on boot

2004-03-06 Thread Aaron Walker
On Sat, 2004-03-06 at 16:01, Lowell Gilbert wrote:
> Aaron Walker <[EMAIL PROTECTED]> writes:
> 
> > I just installed 5.2.1 and upon boot, it hangs at:
> > 
> > Timecounter "TSC" frequency 2153331273 Hz quality 800
> > Timecounters tick every 10.000 msec
> > 
> > It also did this when trying to boot via the 5.2.1 install CD, which was
> > circumvented by booting via floppy... 
> > 
> > It does not do this with 4.9. 
> > 
> > any ideas?
> 
> You're booting without ACPI?

If that is something you have to do manually, then no.  I'm just booting
normally.  How would I turn off ACPI?

Thanks again,
Aaron

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 5.2.1 hanging on boot

2004-03-07 Thread Aaron Walker
On Sat, 2004-03-06 at 19:18, Lowell Gilbert wrote:
> Aaron Walker <[EMAIL PROTECTED]> writes:
> 
> > On Sat, 2004-03-06 at 16:01, Lowell Gilbert wrote:
> > > Aaron Walker <[EMAIL PROTECTED]> writes:
> > > 
> > > > I just installed 5.2.1 and upon boot, it hangs at:
> > > > 
> > > > Timecounter "TSC" frequency 2153331273 Hz quality 800
> > > > Timecounters tick every 10.000 msec
> > > > 
> > > > It also did this when trying to boot via the 5.2.1 install CD, which was
> > > > circumvented by booting via floppy... 
> > > > 
> > > > It does not do this with 4.9. 
> > > > 
> > > > any ideas?
> > > 
> > > You're booting without ACPI?
> > 
> > If that is something you have to do manually, then no.  I'm just booting
> > normally.  How would I turn off ACPI?
> 
> Please read the errata and release notes before starting the install.
> I promise you'll have a much easier time.

Well, I read the errata.  Unfortunately, I am using GRUB as my boot
loader (this system runs win xp, linux, openbsd, and freebsd), which
doesn't support ufs2, so I have to boot FreeBSD 5+ indirectly using
grub's chainloading.  I am therefore unable to pass any kernel options,
and I don't have FreeBSD's boot loader installed, which I assume is
where you boot "safe mode" from.  

Is there any other way to turn off ACPI?

Thanks again,
Aaron

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"