PDP-10 / klh10

Community maintained version of Kenneth L. Harrenstien's PDP-10 emulator.
Other
60 stars 8 forks source link

CHUDP binds to all interfaces #19

Closed larsbrinkhoff closed 6 years ago

larsbrinkhoff commented 7 years ago

The Chaosnet UDP tunnel listens to all interfaces, including the tun interface used by the IMP.

I used a firewall rule to forward all Chaosnet UDP packets from the host to the ITS IP number. Then @b4 asked if this was necessary, and that got me thinking that it shouldn't be. But it was, and it worked. When I removed the rule, it still worked.

So I looked in the code, and there it was: dpchudp.c binds to INADDR_ANY.

Maybe chudp should accept a parameter, say if, and bind only to those interfaces.

bictorv commented 6 years ago

If you want to restrict chudp, you could use firewall rules?

larsbrinkhoff commented 6 years ago

I don't remember what I issue I thought this might cause. I suppose it's not very important, so I'll close.