Re: Connecting networks

2007-12-13 Thread Alaor Barroso de Carvalho Neto
Hi guyz, I'd like to thank all of you. I somehow find the error, there're three errors actually, first, the machine in 192.168.1 network was not using my bsd box as gateway (duh! Thankz Ian), second, I had a error in rc.conf, it had a letter where it was not supposed to have, and third, the pf was

Re: Connecting networks

2007-12-12 Thread Ian Smith
On Wed, 12 Dec 2007, Alaor Barroso de Carvalho Neto wrote: > 2007/12/12, Ian Smith <[EMAIL PROTECTED]>: > > Should be 'defaultrouter', but then it's a route to an apparent local > > router, whereas your em0 appears to be your public internet connection? > Yes, it's default router, like I said

Re: Connecting networks

2007-12-12 Thread Alaor Barroso de Carvalho Neto
2007/12/12, Ian Smith <[EMAIL PROTECTED]>: > > Should be 'defaultrouter', but then it's a route to an apparent local > router, whereas your em0 appears to be your public internet connection? Yes, it's default router, like I said I was not in my work then I wrote by myself this lines, like I didn'

Re: Connecting networks

2007-12-11 Thread Ian Smith
Re-copying the various contributors .. On Tue, 11 Dec 2007 20:00:56 -0200 "Alaor Barroso de Carvalho Neto" <[EMAIL PROTECTED]> wrote: > 2007/12/11, Jonathan Horne [EMAIL PROTECTED]: > > > out of curiosity, are you pinging from the 4-interfaced-connected BSD > > box, or some other workstati

Re: Connecting networks

2007-12-11 Thread Alaor Barroso de Carvalho Neto
2007/12/11, Erik Norgaard [EMAIL PROTECTED]: > > Summing up, your local networks should be able to communicate accross > the BSD box once you have gateway_enable="YES", you do not need NAT for > that to work. If it doesn't work, then your firewall may be blocking. > > For access to the Internet fro

Re: Connecting networks

2007-12-11 Thread Erik Norgaard
Alaor Barroso de Carvalho Neto wrote: defaultroute="192.168.1.80" hostname="tiger.administrativo.unedmacae.cefetcampos.br" gateway_enable="YES" ifconfig_em0="inet XXX.XXX.XXX.XXX netmask 255.255.255.227" ifconfig_xl0="inet 192.168.1.244 netmask 255.255.255.0" ifconfig_xl1="inet 192.168.2.90 netm

Re: Connecting networks

2007-12-11 Thread Alaor Barroso de Carvalho Neto
2007/12/11, Jonathan Horne [EMAIL PROTECTED]: > out of curiosity, are you pinging from the 4-interfaced-connected BSD > box, or some other workstation that is trying to use the BSD box as its > gateway? >From a workstation that is trying to use BSD box as its gateway and have the ip of the BSD

Re: Connecting networks

2007-12-11 Thread Eric Crist
Add gateway_enable="YES" to /etc/rc.conf. Make sure your other systems use the freebsd box in question as their default route. make sure your firewall, if you have one, is passing the traffic between the two networks. Use pf or some other means to nat outbound traffic. HTH On Dec 11,

Re: Connecting networks

2007-12-11 Thread Erik Norgaard
Alaor Barroso de Carvalho Neto wrote: Yes Chris, but I already have the routes, when I do netstat -r they are there but I still unable to ping from one network to another. I did read this section in the handbook but it's not working. I'll paste my netstat -r output in a while. Could you post y

Re: Connecting networks

2007-12-11 Thread Jonathan Horne
Alaor Barroso de Carvalho Neto wrote: Guyz, here's my netstat-r output: Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.1.80 UGS 0 4 xl0 10.10/16 link#4 UC 0 0 xl2 localhost localhost UH 0 0 lo0 192.168.1 link#2 UC 0 0 xl0 zion.administrativ 00:00:54:19:

Re: Connecting networks

2007-12-11 Thread Alaor Barroso de Carvalho Neto
Guyz, here's my netstat-r output: Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.1.80 UGS 0 4 xl0 10.10/16 link#4 UC 0 0 xl2 localhost localhost UH 0 0 lo0 192.168.1 link#2 UC 0 0 xl0 zion.administrativ 00:00:54:19:e7:9a UHLW 1 16 xl0 1151 192.168.1.80 00

Re: Connecting networks

2007-12-11 Thread Alaor Barroso de Carvalho Neto
2007/12/11, Chris Haulmark <[EMAIL PROTECTED]>: > > It sounds like you are wanting a router to function between two > different > subnets. > > Take a reading under 29.2.5 at this link: > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-routin > g.html > > Chris Yes Chris, but I a

RE: Connecting networks

2007-12-11 Thread Chris Haulmark
Hello Alaor: > > Guyz, that's my doubt, if I have two separated networks, and a freebsd > connected in the two of them, I'm supposed to be able to ping to a > machine > in 10.10.0 network from a machine in 192.168.1 network, for example, > byonly > setting gateway_enable="YES"? > I know private

Re: Connecting networks

2007-12-11 Thread Alaor Barroso de Carvalho Neto
Guyz, that's my doubt, if I have two separated networks, and a freebsd connected in the two of them, I'm supposed to be able to ping to a machine in 10.10.0 network from a machine in 192.168.1 network, for example, byonly setting gateway_enable="YES"? I know private networks are for private use, bu

Re: Connecting networks

2007-12-11 Thread Nikos Vassiliadis
On Tuesday 11 December 2007 15:29:29 Alaor Barroso de Carvalho Neto wrote: > Hi guyz, it's me again. I think I don't know what I'm doing, so I ask > for help. I have three private networks(192.168.1, 10.10.0, 192.168.2) > and a link to the external world 200.212.X, what I want to do is that my > Fr

Re: Connecting networks

2007-12-11 Thread shinny knight
Alaor Barroso de Carvalho Neto <[EMAIL PROTECTED]> wrote: Hi guyz, it's me again. I think I don't know what I'm doing, so I ask for help. I have three private networks(192.168.1, 10.10.0, 192.168.2) and a link to the external world 200.212.X, what I want to do is that my FreeBSD connect all the n

Connecting networks

2007-12-11 Thread Alaor Barroso de Carvalho Neto
Hi guyz, it's me again. I think I don't know what I'm doing, so I ask for help. I have three private networks(192.168.1, 10.10.0, 192.168.2) and a link to the external world 200.212.X, what I want to do is that my FreeBSD connect all the networks to the external world and the 192.168.1 to the 10.10