Penguin
Blame: FakeIdentServer
EditPageHistoryDiffInfoLikePages
Annotated edit history of FakeIdentServer version 6, including all changes. View license author blame.
Rev Author # Line
2 BenStaz 1 If you use IRC/ftp servers then you may find this quick guide handy.
1 BenStaz 2 First check out this URL to see what ident actually is:
3 http://en.wikipedia.org/wiki/Identd
4
5 Most ident servers, will send a response containing the username of the current user, but what if we want to return something different? This is because we dont want hackers to know usernames on our machine or perhaps logging into an FTP server requires you to have a specific ident.
6
7 For example an FTP server may be configured to only allow a particular user to login with the specific ident "dog".
8 Well if your username is not "dog" then this could be tricky. Luckily some ident servers allow us to return anything we desire to ident requests.
9
10 This tutorial is for an ident server I use called "ident2" and is written for Ubuntu.
11
12 First download the package:
13 *sudo aptitude install ident2
14
15 Good now kill it!
16 *sudo killall -HUP ident2
17
18 Now we will tell ident2 what we want to return to ident requests.
6 BenStaz 19 *echo "ident <identreply>" > ~~/.ident
1 BenStaz 20
21 Now lets get it started again. (The -i switch tells to use the user-defined ident reply).
22 *sudo ident2 -i
23
24 Now we may want to have the ident2 server boot at startup so use nano to create a bash script in /etc/init.d/
25 (The startup/shutdown scripts all live in directory /etc/init.d)
26 *sudo nano /etc/init.d/ident2
27
28 Paste this: (Thanks to cmonopoly72 on http://community.smoothwall.org)
29 <verbatim>
30 #! /bin/sh
31 #
32 # ident2 Start/Stop RFC 1413 ident2 server
33 #
34 # chkconfig: 345 35 65
35 # description: The identd server provides a means to determine the identity
36 # of a user of a particular TCP connection. Given a TCP port
37 # number pair, it returns a character string which identifies
38 # the owner of that connection on the server's system.
39 # processname: ident2
40 # pidfile: /var/run/ident2
41 # config: /etc/identd.conf
42
43 # Source function library.
44 . /lib/lsb/init-functions
45
46 [ -x /usr/local/sbin/ident2 ] || exit 0
47
48 RETVAL=0
49
50 # See how we were called.
51 case "$1" in
52 start)
53 log_begin_msg "Starting ident2: "
54 /usr/local/sbin/ident2
55 RETVAL=$?
56 echo
57 [ $RETVAL -eq 0 ] && touch /var/run/identd/ident2.pid
58 ;;
59 stop)
60 log_begin_msg "Stopping ident2 services: "
61 killproc ident2
62 RETVAL=$?
63 echo
64 [ $RETVAL -eq 0 ] && rm -f /var/run/identd/ident2.pid
65 ;;
66 status)
67 status ident2
68 RETVAL=$?
69 ;;
70 restart|reload)
71 $0 stop
72 $0 start
73 RETVAL=$?
74 ;;
75 *)
76 log_success_msg "Usage: ident2 {start|stop|status|restart|reload}\n"
77 exit 1
78 esac
79
80 exit $RETVAL
81 </verbatim>
82
83 Save your script then add it using update-rc.d:
5 BenStaz 84 *sudo update-rc.d ident2 defaults 90
1 BenStaz 85 This makes the script start up on runlevels 2-5
3 BenStaz 86
87 To see if all this worked. After a reboot type:
88 *ps -A | grep ident2
89 If it appears you're in business :D
4 BenStaz 90
91 Note there are other ident servers that can accomplish the same task such as fakeidentd and oidentd, you may want to check out them and feel free to write a guide ;)