Solved

OpenBSD router +netbios forwarding

Posted on 2003-11-27
8
1,579 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
  • 4
  • 2
8 Comments
 
LVL 61

Expert Comment

by:gheist
Comment Utility
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
Comment Utility
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 61

Expert Comment

by:gheist
Comment Utility
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:deadlast
Comment Utility
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 61

Expert Comment

by:gheist
Comment Utility
and second parameter must be set on all involved machines...
0
 
LVL 61

Expert Comment

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

Accepted Solution

by:
Computer101 earned 0 total points
Comment Utility
PAQed, with points refunded (500)

Computer101
E-E Admin
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now