?
Solved

OpenBSD router +netbios forwarding

Posted on 2003-11-27
8
Medium Priority
?
1,612 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
Independent Software Vendors: 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.
Suggested Courses
Course of the Month7 days, 21 hours left to enroll

765 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