Solved

OpenBSD router +netbios forwarding

Posted on 2003-11-27
8
1,608 Views
Last Modified: 2013-12-09
I have 2 subnets

10.69.69.0/24
192.168.0.0/24

the OBSD box is acting as a router between the 2.
But it doesn't forward netbios over tcp/ip broadcasts to opposite subnets. Its not supposed to by default. But this is what I need.
I've tried using pf to rdr udp ports 137 138 139 over the subnets.
That didn't work :)

Any ideas? This is easy to do with cisco routers so it shouldn't be too hard with obsd.

here are some of my PF rule attempts


rdr on hme0 proto udp from 192.168.0.0/24 to any port { 137, 138, 139 } -> 10.69.69.255
rdr on hme1 proto udp from 10.69.69.0/24 to any port { 137, 138, 139 } -> 192.168.0.255

#rdr on hme0 proto udp from any to any -> 10.69.69.255      
#rdr on hme1 proto udp from any to any -> 192.168.0.255
0
Comment
Question by:deadlast
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
8 Comments
 
LVL 62

Expert Comment

by:gheist
ID: 9832336
NO.
You need shared WINS server like samba nmbd or windows PDC, and select it on all workstations.
Starting from Windows2000 it uses port 445 and maybe 80+443 for NetBIOS too, and you forgot nameservice - port 135... check out netstat -na just in case.
Easy if you have got DHCP, or somebody should attend all workstations ( and maybe switch to DHCP, so you get central workstations configuration in one place )
0
 

Author Comment

by:deadlast
ID: 9832467
no I don't need any of that. I did this yesterday with a cisco router no prob on another section of my network.
All I need forwarded is;
UDP  137  NETBIOS Name Service
UDP  138  NETBIOS Datagram Service
UDP  139  NETBIOS Session Service

This is netbios over tcp/ip with windows 2000.

btw
UDP  135  DCE endpoint resolution - not nameservice
Thanks though :)
0
 
LVL 62

Expert Comment

by:gheist
ID: 9837316
135 is important anyway...
check out www.sysinternals.com to see who binds where and why.
WINS is preferred way, or bridge for IPX or NetBEUI(not acttually routing anymore)
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:deadlast
ID: 9849883
with these 2 things on in sysctl.conf broadcast routing should be taking place.

net.inet.ip.forwarding=1 -- allow routing
net.inet.ip.directed-broadcast=1 -- allow broadcast routing

its not.
0
 
LVL 62

Expert Comment

by:gheist
ID: 9856156
and second parameter must be set on all involved machines...
0
 
LVL 62

Expert Comment

by:gheist
ID: 10128886
No problem. I hope asker found answer somewhere else on the web
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 10215083
PAQed, with points refunded (500)

Computer101
E-E Admin
0

Featured Post

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question