Configuring Gateway/NAT on Freebsd
I am trying to configure a FreeBSD 3.3 box to act as a gateway/NAT translater for my network. I have added the following to the my rc.conf ifconfig_tun0="inet 172.168.0.1 netmask 255.255.255.0" gateway_enabled="YES" natd_enabled="YES" natd_ingerface="tun0" and tun0 to my network_interfaces list. The box works fine on its own, but I am unable to get boxes in my 172.168.0.x space to work through it. I am confused a bit on what I need to set my other boxes too, and if I am missing something on this box I must do as well. Should I set my other boxes to gateway to this boxes 172 address, or to the real IP of this box? If it is in the 172 space, how is this box being informed it shoul be listening for it, since the only the tun0 is told it is attached to this IP, not the actual NIC... Any help would be most appreciated. Sean To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
subscribe
To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Apache in FreeBSD 3.3 precompiled with DSO?
Is the Apache distributed in 3.3 compiled with DSO? Sean Peck News Index -- The original News Only Search Engine. http://www.newsindex.com/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
FREE Problem in BSD?
The following code is consistently throwing xxx in free(): warning: modified (page-) pointer. on the free(ENTRY.ptr) line. ENTRY is a datum, the trace printf's show that ENTRY.dptr has the same value immediately after the dbm_fetch as it has immediately before the free, but the message continues to be displayed... Anyone know what is going on here? ENTRY = dbm_fetch(db,URL); printf("%d\n",ENTRY.dptr); bzero(etemp,1000); if(ENTRY.dptr != NULL){ strncpy(etemp,ENTRY.dptr,ENTRY.dsize); // ENTRY.dptr[ENTRY.dsize]=0; sprintf(temp,"%s\xb3\xb3%s",URL.dptr,etemp); } else{ // printf("ERRER %d %s\n",dbm_error(db),array[y]); sprintf(temp,"%s\xb3\xb3%s",URL.dptr,"0"); } free(URL.dptr); if(ENTRY.dptr != NULL){ printf("%d\n",ENTRY.dptr); free(ENTRY.dptr); Sean Peck News Index -- The original News Only Search Engine. http://www.newsindex.com/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
No Subject
auth 420551d3 unsubscribe freebsd-hackers [EMAIL PROTECTED] Sean Peck News Index -- The original News Only Search Engine. http://www.newsindex.com/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: FreeBSD 3.3 fork/Exec bug?
= 1; break; } #ifdef __osf__ (void)close(sock); if (alarm_caught) return TCP_CONNECT_TIMEOUT; else return TCP_CONNECT_ERROR; #endif /* not waiting for connection? */ if (errno != EINPROGRESS && errno != EWOULDBLOCK) { /* connection refused? */ if (errno == ECONNREFUSED) continue; /* otherwise error */ (void)close(sock); return TCP_CONNECT_ERROR; } for (;;) { FD_SET(sock, &fds); if (secs >= 0) { timeout.tv_sec = secs; timeout.tv_usec = 0; } ret = select(sock + 1, 0L, &fds, 0L, timeoutp); if (ret > 0 && FD_ISSET(sock, &fds)) { okay = 1; break; } if (ret == 0) { (void)close(sock); return TCP_CONNECT_TIMEOUT; } if (ret < 0 && errno != EINTR) { (void)close(sock); return TCP_CONNECT_ERROR; } } if (okay) break; } /* connection made? */ if (okay) { #ifndef __osf__ /* turn off non-blocking */ (void)fcntl(sock, F_SETFL, fcntl(sock, F_GETFL, 0) & ~O_NONBLOCK); #endif *sockp = sock; return TCP_NO_ERROR; } (void)close(sock); return TCP_CONNECT_NONE; } Sean Peck News Index -- The original News Only Search Engine. http://www.newsindex.com/ On Sat, 8 Apr 2000, Alfred Perlstein wrote: > * Sean Peck <[EMAIL PROTECTED]> [000408 07:58] wrote: > > > > I am having a bizarre problem with a system on FreeBSD. > > > > The system consists of a server who forks its clients. > > When the clients are forked, they try to connect to the server and get > > information. Unfortunately when they fork off (fork/execlp), they say > > they connected to > > server and recieved nothing, yet the server does not register the > > connection or request for info. If I run the client independently (not > > via fork/execlp) everything works just fine. > > > > This code is deployed and operational on BSDi without a problem, so I > > assume that this is OS related, does anyone know anything about, or can > > help me with this? > > Without some example code to demostrate the problem there's not much > we can do to address this. > > -- > -Alfred Perlstein - [[EMAIL PROTECTED]|[EMAIL PROTECTED]] > "I have the heart of a child; I keep it in a jar on my desk." > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
FreeBSD 3.3 fork/Exec bug?
I am having a bizarre problem with a system on FreeBSD. The system consists of a server who forks its clients. When the clients are forked, they try to connect to the server and get information. Unfortunately when they fork off (fork/execlp), they say they connected to server and recieved nothing, yet the server does not register the connection or request for info. If I run the client independently (not via fork/execlp) everything works just fine. This code is deployed and operational on BSDi without a problem, so I assume that this is OS related, does anyone know anything about, or can help me with this? Sean Sean Peck News Index -- The original News Only Search Engine. http://www.newsindex.com/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message