🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #7720

Which ethernet intfc. is my socked on?

#7720
From: Larry Pajakowski
Date: Fri, 10 May 1991 13:03
16 lines
1258 bytes
We have a workstations acting as a router between 2 networks.  We need to
limit some of the tcp/udp services on one of the networks.  For example
ftpd and telnetd would only be available on the "secure" network.

The manual gives an example of using getpeername but I feel that using the
physical ethernet interface would be harder to fake then the internet
address.  So far I havn't figured out how to find out which interface my
socket is on.  Any pointers would be apreciated.

Anybody ever thought of separate services files for each interface?

Many thanks.
Larry Pajakowski
Abbott Labs.
pajakowskil%randb.abbott.com@relay.cs.net
uunet!abtlabs!turing
Technical Details
Message-ID: <2791@brchh104.bnr.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request
From: turing!abbott.com!larry@uunet.uu.net (Larry Pajakowski)
Newsgroups: comp.sys.sun
Subject: Which ethernet intfc. is my socked on?
Keywords: Miscellaneous
Message-ID: <2791@brchh104.bnr.ca>
Date: 10 May 91 13:03:00 GMT
Sender: news@brchh104.bnr.ca
Organization: Sun-Spots
Lines: 17
Approved: Sun-Spots@rice.edu
X-Original-Date: Thu, 2 May 91 20:36:40 GMT
X-Sun-Spots-Digest: Volume 10, Issue 100, message 17
X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu