defaults
{
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST
}
swat stream tcp nowait.400 root /usr/sbin/swat swat
includedir /etc/xinetd.d
I thought that last line there would run the script, am I wrong?
David Stevenson wrote:
[EMAIL PROTECTED]">Put the contents of that script into xinetd.conf, that should be all
required. The ip/range should also be allowed to connect in the /etc/hosts.*
files.
HTH
Dave
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED]
Sent: 22 March 2002 07:18
To: [EMAIL PROTECTED]
Subject: [expert] Troubles with pop daemon
No matter what I do I can't seem to get the pop daemon to work. I'm trying
to use ipop3d from the imap package and it seems to work ok, but it doesn't
start on boot.
Every help guide says to put some lines into inetd.conf which is
conspicuously absent. In xinetd.d I've got an ipop3 script with:
service pop3
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/sbin/ipop3d
log_on_success += USERID
log_on_failure += USERID
}
In it.
Just typing ipop3d as root lets me type in typical mailbox type commands
(user pass list last ...). Telnet to 110 gives connection denied.
rc.firewall
#!/bin/bash
echo "Enabling Forwarding"
echo ""
echo 1>/proc/sys/net/ipv4/ip_forward
iptables -P INPUT ACCEPT
iptables -F INPUT
iptables -P OUTPUT ACCEPT
iptables -F OUTPUT
iptables -P FORWARD ACCEPT
iptables -F FORWARD
iptables -A FORWARD -i eth0 -o eth1 -m state --state ESTABLISHED,RELATED -j
ACCEPT
iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j
REDIRECT --to-port 3128
iptables -t nat -A PREROUT ING -i eth0 -p tcp --dport 81 -j
REDIRECT --to-port 3128
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 5900 -j
DNAT --to-destination 192.168.0.1
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 5800 -j
DNAT --to-destination 192.168.0.1
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com
