I want to use an irc proxy that is at port 6667 on localhost and go through that to connect to IRC. Problem is, I can't get it to work.
I get something like this:
Socket(5), Error (98):Failed to bind listening socket.
sockListen: bind failed: host(127.0.0.1), port(6667)Failed to bind listening socket.
The proxy said it is accepting on port 6667 but comes up with the errors above.
I have bind installed:
# rpm -qa | grep bind
bind-utils-9.2.1-16
ypbind-1.11-4
bind-9.2.1-16
I was reading posts in this forum and stumbled upon one on how to stealth your linux box, so I grabbed the iptables from that and based mine on it:
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Lokkit-0-50-INPUT - [0:0]
-A INPUT -j RH-Lokkit-0-50-INPUT
-A FORWARD -j RH-Lokkit-0-50-INPUT
-A RH-Lokkit-0-50-INPUT -i lo -j ACCEPT
-A RH-Lokkit-0-50-INPUT -m state --state INVALID -j DROP
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 0:8080 --syn -j DROP
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 8081:65535 --syn -j DROP
-A RH-Lokkit-0-50-INPUT -p udp -m udp --dport 0:8080 -j DROP
#-A RH-Lokkit-0-50-INPUT -p udp -m udp --dport 8081:65535 -j DROP
COMMIT
Now I commented the last line out before COMMIT because I was experimenting with it and it wouldn't even let me get to the web. Commented out, it lets me connect (what should be the right one?)
And how do I open port 6667in this mess but in a secure way?
Suggestions welcome. I've tried Lokkit, Firestarter and Bastille and none of those make the system as stealth as I'd like, and yet open just the ports I want securely.
I don't know anything about networking and firewalls, obviously so if someone can help... the thread about stealthing was hard enough to follow.