Networking Forums

Networking Forums > Computer Networking > Linux Networking > getting client ip before accept?

Reply
Thread Tools Display Modes

getting client ip before accept?

 
 
Stephan Dreyer
Guest
Posts: n/a

 
      09-25-2004, 07:25 PM
Hi
i'm searching for a way to get a client ip before calling accept
(and to close connection if ip doesn't match a list)
any ideas?

cheers,
stephan


 
Reply With Quote
 
 
 
 
Michael Heiming
Guest
Posts: n/a

 
      09-25-2004, 09:02 PM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message

In comp.os.linux.networking Stephan Dreyer <(E-Mail Removed)> suggested:
> Hi
> i'm searching for a way to get a client ip before calling accept
> (and to close connection if ip doesn't match a list)
> any ideas?


man 3 hosts_access
man 5 hosts_access

You need to specify what you want to do, if you need more help.

--
Michael Heiming (GPG-Key ID: 0xEDD27B94)
mail: echo (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBVdzsAkPEju3Se5QRAldlAKDC3BP8FxelhA3CyoDjyD/lOd35xgCgnHFt
pUeSaPUnA/mQ1DE0KsQw7ro=
=sJ4M
-----END PGP SIGNATURE-----
 
Reply With Quote
 
Stephan Dreyer
Guest
Posts: n/a

 
      09-25-2004, 09:14 PM
> man 3 hosts_access
> man 5 hosts_access
>
> You need to specify what you want to do, if you need more help.


i want to do this in my own c/c++ programs
ip check would only be the first step
for example i could make a connection back and check for a key before
accepting connection


 
Reply With Quote
 
PC
Guest
Posts: n/a

 
      09-26-2004, 02:47 AM
Not going to happen... you would have to get into a TDI filter or some kind
of packet sniffer.

"Stephan Dreyer" <(E-Mail Removed)> wrote in message
news:cj4gmn$5j3$03$(E-Mail Removed)...
> Hi
> i'm searching for a way to get a client ip before calling accept
> (and to close connection if ip doesn't match a list)
> any ideas?
>
> cheers,
> stephan
>
>



 
Reply With Quote
 
Bill Unruh
Guest
Posts: n/a

 
      09-26-2004, 03:08 AM
"PC" <(E-Mail Removed)> writes:

]Not going to happen... you would have to get into a TDI filter or some kind
]of packet sniffer.

]"Stephan Dreyer" <(E-Mail Removed)> wrote in message
]news:cj4gmn$5j3$03$(E-Mail Removed)...
]> Hi
]> i'm searching for a way to get a client ip before calling accept
]> (and to close connection if ip doesn't match a list)
]> any ideas?

You make no indication here as to what you are using. If it is ppp, then
you can use the fourth entry field in /etc/ppp/{pap,chap}-secrets to limit
the IP of people able to log in. However this would mean that they have to
have their IP.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
snmp accept from all MSNews Windows Networking 1 09-23-2009 07:29 PM
Linux TCP/IP Accept Queue Benjamin Chu Linux Networking 0 02-03-2006 06:34 PM
accept trouble stef Linux Networking 1 09-19-2005 11:50 PM
wireless client won't accept WEP key Dan Wireless Networks 3 05-06-2005 07:33 PM
listen() and accept() Amit Yadav Linux Networking 1 01-09-2005 02:50 PM



1 2 3 4 5 6 7 8 9 10 11