From owner-freebsd-questions@FreeBSD.ORG Thu Dec 29 15:15:21 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D844816A420 for ; Thu, 29 Dec 2005 15:15:21 +0000 (GMT) (envelope-from nvass@teledome.gr) Received: from matrix.teledomenet.gr (dns1.teledomenet.gr [213.142.128.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A96443D46 for ; Thu, 29 Dec 2005 15:15:19 +0000 (GMT) (envelope-from nvass@teledome.gr) Received: from iris ([192.168.1.71]) by matrix.teledomenet.gr (8.12.10/8.12.10) with ESMTP id jBTFFCkA012863; Thu, 29 Dec 2005 17:15:12 +0200 From: Nikos Vassiliadis To: freebsd-questions@freebsd.org Date: Thu, 29 Dec 2005 17:11:29 +0200 User-Agent: KMail/1.8.1 References: <200512281459.jBSExEAm033777@pershing.be> In-Reply-To: <200512281459.jBSExEAm033777@pershing.be> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-7" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512291711.29870.nvass@teledome.gr> Cc: Mile Subject: Re: mpd problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2005 15:15:22 -0000 On Wednesday 28 December 2005 16:59, Mile wrote: > Hi, > > I have a FreeBSD computer acting as gateway to windows clients.... > Some sites like msn.com, opera.com, hp.com, najdi.si .... dont work on > LAN... because of MTU problem. > > If i set MTU to 1492 instead of default 1500 then this sites work! (on > windows) > > (If i use userland pppoe then everything works without setting MTU on LAN. > (itself has an option mssfixup).) > > I tried with adding "set iface enable tcpmssfix" to mpd.conf as described > in mpd documentation, but it still doesnt work... msn.com and opera.com > work now... but others dont. There is a netgraph node that changes MSS in FreeBSD-6 and it works fine. Read ng_tcpmss(4). If you are using FreeBSD-5, google it. HTH, Nikos > > mpd.conf (Version 3.18) > default: > load PPPoE > > PPPoE: > new -i ng0 PPPoE PPPoE > set iface addrs 1.1.1.1 2.2.2.2 > set iface route default > set iface disable on-demand > set iface idle 0 > set bundle disable multilink > set bundle authname xxx > set link no acfcomp protocomp > set link disable pap chap > set link accept chap > set link mtu 1492 > set link keep-alive 10 60 > set ipcp yes vjcomp > set ipcp ranges 0.0.0.0/0 0.0.0.0/0 > set iface enable tcpmssfix > open iface > > > natd.conf > interface ng0 > dynamic yes > use_sockets yes > > > ipfw > #natd > /sbin/ipfw 15 add divert natd all from any to any via ng0 > > > sysctl.conf > security.bsd.see_other_uids=0 > security.bsd.see_other_gids=0 > security.bsd.unprivileged_read_msgbuf=0 > net.inet.tcp.blackhole=2 > net.inet.udp.blackhole=1 > vm.swap_idle_enabled=1 > kern.ipc.maxsockbuf=2097152 > kern.ipc.somaxconn=2048 > kern.maxfiles=65536 > kern.maxfilesperproc=32768 > net.inet.tcp.rfc1323=0 > net.inet.tcp.delayed_ack=0 > net.inet.tcp.sendspace=32768 > net.inet.tcp.recvspace=32768 > net.inet.udp.recvspace=32768 > net.inet.udp.maxdgram=57344 > net.local.stream.recvspace=32768 > net.local.stream.sendspace=32768 > net.inet.icmp.drop_redirect=1 > net.inet.icmp.log_redirect=1 > net.inet.ip.redirect=1 > net.inet6.ip6.redirect=0 > net.inet.ip.sourceroute=1 > net.inet.ip.accept_sourceroute=1 > net.link.ether.inet.max_age=1200 > net.inet.icmp.bmcastecho=0 > #net.inet.tcp.drop_synfin=1 > net.inet.ip.fw.verbose=1 > > If you need any more info please contact me. > > > thanks, > Brane > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"