Date: Sun, 16 Jul 2006 16:27:42 +0200 From: =?ISO-8859-1?Q?Erik_N=F8rgaard?= <norgaard@locolomo.org> To: andreas Sotirakopoulos <menwn@yahoo.co.uk> Cc: freebsd-questions@freebsd.org Subject: Re: ADSL Internet Sharing Message-ID: <44BA4CDE.1090101@locolomo.org> In-Reply-To: <200607161448.45108.menwn@yahoo.co.uk> References: <200607161448.45108.menwn@yahoo.co.uk>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] andreas Sotirakopoulos wrote: > Hi, > I have some problems sharing my adsl internet connection > between my FreeBSD 6.0 Box (server) and my Ubuntu 6.0.6 > box (client). I use a crossover cable to connect the two PCs and > on the FreeBSD PC I have an onboard network card (fxp0) and > an wireless card (ural0) and on my Ubuntu box I have one NIC (eth0). > > My goal is to have my internet connection shared. The router I use > to have internet access from my BSD box is downstairs so I connect to the > internet via my wireless card. > > The ip address of the router is 192.168.1.1 and of my fxp0 interface > 192.168.0.1. Of my eth0 is 192.168.0.2. I have set on Ubuntu as gateway > 192.168.0.1 (my BSD box's address). Netmask? Always indicate your ip-address as <IP-address>/<CIDR>. > Also i can ping the two pc from each other, but from ubuntu i cannot ping > the router or any internet address. I have the following to my /etc/rc.conf > > gateway_enable="YES" > firewall_enable="YES" > firewall_type="OPEN" > natd_enable="YES" > natd_interface="fxp0" > natd_flags="" > > and the option described on the Handbook compiled in the Kernel. What > i missing? I don't know anything about ipfw, or natd, I assume you checked that? Two things to do: * Check your firewall log, if no logging is done, add log rules to see where packets are caught. * Try sniffing on the interfaces on the BSD box with tcpdump or snort. Is the DSL smart enough to figure out to return the icmp? Maybe it doesn't guess that a reply should go out on the same interface as the request was received: The dsl does likely not know about your network between your two machines, so instead of returning the ping on the wireless interface that received the ping it is sent off to the default gateway which goes to the internet. If that is the case you must add routing to your 192.168.0.0/24 network on the DSL. Cheers, Erik -- Ph: +34.666334818 web: http://www.locolomo.org X.509 Certificate: http://www.locolomo.org/crt/8D03551FFCE04F0C.crt Key ID: 69:79:B8:2C:E3:8F:E7:BE:5D:C3:C3:B1:74:62:B8:3F:9F:1F:69:B9 [-- Attachment #2 --] 0 *H 010 + 0 *H 00נ UO0 *H 010 UES10U Daemon Security10UCertificate Authority10UCertificate Authority1$0" *H ca@daemonsecurity.com1 0U00 060420131650Z 070420131650Z0b10 UES10U LocoLomo.Org10U Erik Norgaard1$0" *H norgaard@locolomo.org0"0 *H 0 >NPLGMK $^ha~ Xם-`Y^P oœtƥ*\.e_!2\j]m)B>v+z2VfDѝR}Tc&E/#_.9DŽ9÷(3 ?ԝWu%)vŅͯTr)FA+(R6ƶw {9zP_Q^zpk/jXMY n0j0U0 0U0Uiy,]ñtb?i0U#0Àa&WtЕna=⥡010 UES10U Daemon Security10UCertificate Authority10UCertificate Authority1$0" *H ca@daemonsecurity.com1 0U0 UO0 U0norgaard@locolomo.org08U10/0-+)'http://www.daemonsecurity.com/ca/ds.crl0 *H ǟ@&<mWc4LS@G4['s5\\VN^`I &>"@>"[xq89`@sG;LP]ƜTT|sGٶ2 Ҋctx?'ҭ$0r;2#ba"%$B p%rԆU ì>!73ȁg6_I.2Ġ!AaAmF G'bךuf>-dxqq09#XOSk+FuyTvr+p!!}n.6NH'5+9`CVĩ;7RߔRKIpv&S@P`;%eƓxCuiL Cb Y,)x:3ѓGjRe EtPҰk< c\;9pT9/K̩ LHzMMuʔ(dkskj <ds08PxZ NWC00נ UO0 *H 010 UES10U Daemon Security10UCertificate Authority10UCertificate Authority1$0" *H ca@daemonsecurity.com1 0U00 060420131650Z 070420131650Z0b10 UES10U LocoLomo.Org10U Erik Norgaard1$0" *H norgaard@locolomo.org0"0 *H 0 >NPLGMK $^ha~ Xם-`Y^P oœtƥ*\.e_!2\j]m)B>v+z2VfDѝR}Tc&E/#_.9DŽ9÷(3 ?ԝWu%)vŅͯTr)FA+(R6ƶw {9zP_Q^zpk/jXMY n0j0U0 0U0Uiy,]ñtb?i0U#0Àa&WtЕna=⥡010 UES10U Daemon Security10UCertificate Authority10UCertificate Authority1$0" *H ca@daemonsecurity.com1 0U0 UO0 U0norgaard@locolomo.org08U10/0-+)'http://www.daemonsecurity.com/ca/ds.crl0 *H ǟ@&<mWc4LS@G4['s5\\VN^`I &>"@>"[xq89`@sG;LP]ƜTT|sGٶ2 Ҋctx?'ҭ$0r;2#ba"%$B p%rԆU ì>!73ȁg6_I.2Ġ!AaAmF G'bךuf>-dxqq09#XOSk+FuyTvr+p!!}n.6NH'5+9`CVĩ;7RߔRKIpv&S@P`;%eƓxCuiL Cb Y,)x:3ѓGjRe EtPҰk< c\;9pT9/K̩ LHzMMuʔ(dkskj <ds08PxZ NWC100010 UES10U Daemon Security10UCertificate Authority10UCertificate Authority1$0" *H ca@daemonsecurity.com1 0U0 UO0 + )0 *H 1 *H 0 *H 1 060716142743Z0# *H 1$G%B۵rO0R *H 1E0C0 *H 0*H 0 *H @0+0 *H (0 +710010 UES10U Daemon Security10UCertificate Authority10UCertificate Authority1$0" *H ca@daemonsecurity.com1 0U0 UO0*H 1010 UES10U Daemon Security10UCertificate Authority10UCertificate Authority1$0" *H ca@daemonsecurity.com1 0U0 UO0 *H C[W,ɑ-i$C^?_s7䓖J:jc$JQq&~Ye¨\}4JdX`pW53J={&x"6~{έ_K09$ L_[45Y,B$R`( ʱR1$|4j`jǧEF&bހG=8M F L|W3Xb9sеklѓyr/:E>f>vr uhelp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44BA4CDE.1090101>
