Date: Thu, 26 Jul 2001 17:02:22 -0700 From: harish <harish@netscaler.com> To: freebsd-questions@freebsd.org Subject: IPFW with bridging enabled Message-ID: <C143D2DEAA20D411A5E500A0CC600C291B6FA8@MAIL>
next in thread | raw e-mail | index | archive | help
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C1162F.691DF710
Content-Type: text/plain;
	charset="iso-8859-1"
Hi 
    I was trying to use ipfw as a bandwidth emulator. Could anyone please
guide me on how I could use ipfw with bridge enabled.
FreeBSD version: 4.2
 
FreeBSD is crashing when I try to do the following
 
I have set the following sysctl variables:
 
sysctl -w net.link.ether.bridge=1
sysctl -w net.link.ether.bridge_ipfw=1
 
ipfw add pipe 1 ip allow from any to any in
ipfw pipe 1 config bw 300Kbit/s
ipfw pipe 1 config allow <- it crashes here.
 
additional info:
 
I have set following options in my kernel conf file
DUMMYNET
BRIDGE
IPFIREWALL
IPDIVERT
 
I have the following in my /etc/rc.conf file
 
firewall_enable = "YES"
firewall_type = "OPEN"
 
Thanks in Advance
Harish Muppalla
 
 
 
 
------_=_NextPart_001_01C1162F.691DF710
Content-Type: text/html;
	charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 5.00.2614.3500" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=570214623-26072001>Hi 
</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=570214623-26072001>    I was trying to use ipfw as a 
bandwidth emulator. Could anyone please guide me on how I could use ipfw with 
bridge enabled.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=570214623-26072001>FreeBSD version: 4.2</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=570214623-26072001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=570214623-26072001>FreeBSD is crashing when I try to do the 
following</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=570214623-26072001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=570214623-26072001>I have 
set the following sysctl variables:</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=570214623-26072001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=570214623-26072001>sysctl 
-w net.link.ether.bridge=1</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=570214623-26072001><FONT 
color=#0000ff face=Arial size=2><SPAN class=570214623-26072001>sysctl -w 
net.link.ether.bridge_ipfw=1</SPAN></FONT></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=570214623-26072001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=570214623-26072001>ipfw 
add pipe 1 ip allow from any to any in</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=570214623-26072001>ipfw 
pipe 1 config bw 300Kbit/s</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=570214623-26072001>ipfw 
pipe 1 config allow <- it crashes here.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=570214623-26072001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2>additional info:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=570214623-26072001>I have 
set following options in my kernel conf file</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=570214623-26072001>DUMMYNET<BR>BRIDGE<BR>IPFIREWALL</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=570214623-26072001>IPDIVERT</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=570214623-26072001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=570214623-26072001>I 
have the following in my /etc/rc.conf file</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=570214623-26072001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=570214623-26072001>firewall_enable = "YES"</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=570214623-26072001>firewall_type = "OPEN"</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=570214623-26072001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=570214623-26072001>Thanks 
in Advance</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=570214623-26072001>Harish 
Muppalla</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=570214623-26072001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=570214623-26072001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=570214623-26072001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=570214623-26072001></SPAN></FONT> </DIV></BODY></HTML>
------_=_NextPart_001_01C1162F.691DF710--
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C143D2DEAA20D411A5E500A0CC600C291B6FA8>
