Hello,
I am not able to access SWAT from any other host besides the one running
the SWAT daemon.
No firewall blocking access on either side.
# netstat -lnt | grep 901
tcp 0 0 0.0.0.0:901 0.0.0.0:*
LISTEN
works fine connecting from localhost using:
lynx localhost:901
Unavailable using public IP on a remote host.. i.e. going into Firefox and
http://1.2.3.4:901
SWAT is configured through xinetd:
# cat /etc/xinetd.d/swat
# default: off
# description: SWAT is the Samba Web Admin Tool. Use swat \
# to configure your Samba server. To use SWAT, \
# connect to port 901 with your favorite web browser.
service swat
{
disable = no
port = 901
socket_type = stream
wait = no
only_from = 127.0.0.1
user = root
server = /usr/sbin/swat
log_on_failure += USERID
}
TIA,
Kenny Sanders
On Monday 07 November 2005 07:43, Kenny Sanders wrote:> Hello, > > I am not able to access SWAT from any other host besides the one running > the SWAT daemon. > > No firewall blocking access on either side. > > # netstat -lnt | grep 901 > tcp 0 0 0.0.0.0:901 0.0.0.0:* > LISTEN > > works fine connecting from localhost using: > lynx localhost:901 > > Unavailable using public IP on a remote host.. i.e. going into Firefox and > http://1.2.3.4:901 > > SWAT is configured through xinetd: > > # cat /etc/xinetd.d/swat > # default: off > # description: SWAT is the Samba Web Admin Tool. Use swat \ > # to configure your Samba server. To use SWAT, \ > # connect to port 901 with your favorite web browser. > service swat > { > disable = no > port = 901 > socket_type = stream > wait = no > only_from = 127.0.0.1^^^^^^^^^^^^^^^^^^^^^^^^ Your SWAT confiugration is doing what it is configured to do. See above entry! - John T.> user = root > server = /usr/sbin/swat > log_on_failure += USERID > } > > TIA, > Kenny Sanders
My guess is the line only_from = 127.0.0.1 is stopping you since that is the
address of local host. Try adding in your network IP's.
DG
-----Original Message-----
From: Kenny Sanders [mailto:kos@cachecrop.net]
Sent: Monday, November 07, 2005 8:44 AM
To: samba@lists.samba.org
Subject: [Samba] SWAT not accessible from remote sites
Hello,
I am not able to access SWAT from any other host besides the one running the
SWAT daemon.
No firewall blocking access on either side.
# netstat -lnt | grep 901
tcp 0 0 0.0.0.0:901 0.0.0.0:*
LISTEN
works fine connecting from localhost using:
lynx localhost:901
Unavailable using public IP on a remote host.. i.e. going into Firefox and
http://1.2.3.4:901
SWAT is configured through xinetd:
# cat /etc/xinetd.d/swat
# default: off
# description: SWAT is the Samba Web Admin Tool. Use swat \
# to configure your Samba server. To use SWAT, \
# connect to port 901 with your favorite web browser.
service swat
{
disable = no
port = 901
socket_type = stream
wait = no
only_from = 127.0.0.1
user = root
server = /usr/sbin/swat
log_on_failure += USERID
}
TIA,
Kenny Sanders
"only_from = 127.0.0.1" It looks like this option is only allowing users to access swat from the localhost (127.0.0.1). You will need to change this option. Kenny Sanders wrote:>Hello, > >I am not able to access SWAT from any other host besides the one running >the SWAT daemon. > >No firewall blocking access on either side. > ># netstat -lnt | grep 901 >tcp 0 0 0.0.0.0:901 0.0.0.0:* >LISTEN > >works fine connecting from localhost using: >lynx localhost:901 > >Unavailable using public IP on a remote host.. i.e. going into Firefox and >http://1.2.3.4:901 > >SWAT is configured through xinetd: > ># cat /etc/xinetd.d/swat ># default: off ># description: SWAT is the Samba Web Admin Tool. Use swat \ ># to configure your Samba server. To use SWAT, \ ># connect to port 901 with your favorite web browser. >service swat >{ > disable = no > port = 901 > socket_type = stream > wait = no > only_from = 127.0.0.1 > user = root > server = /usr/sbin/swat > log_on_failure += USERID >} > >TIA, >Kenny Sanders > >