Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Dec 2005 17:11:29 +0200
From:      Nikos Vassiliadis <nvass@teledome.gr>
To:        freebsd-questions@freebsd.org
Cc:        Mile <mile@pershing.be>
Subject:   Re: mpd problem
Message-ID:  <200512291711.29870.nvass@teledome.gr>
In-Reply-To: <200512281459.jBSExEAm033777@pershing.be>
References:  <200512281459.jBSExEAm033777@pershing.be>

next in thread | previous in thread | raw e-mail | index | archive | help
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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200512291711.29870.nvass>