This is a discussion on Howto start usermin remotely to change password within the Mail Servers forums, part of the Mastering Servers category; Hi folks, Ubuntu 7.04 server amd64 I can't figure out how users can start usermin remotely and login their account ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
Hi folks,
Ubuntu 7.04 server amd64 I can't figure out how users can start usermin remotely and login their account to change password. On server, user can start usermin locally running "https://mail:20000" login in their account and change password. However on remote PC; User can browse the apache-default page on server with "https://domain.com" or "http://domain.com (remark. homepage NOT hoisted yet) Run https://mail.domain.com:20000 Code:
Unable to connect Code:
Not Found The requested URL /mail:20000/ was not found on this server. B.R. satimis Last edited by satimis; 11-30-2007 at 01:32 PM. |
| Sponsored Links | ||
|
|
|
||||
|
#1, firewall may be blocking access to port 20000
Code:
sudo iptables -L -n #2, Webmin is bind to localhost only, Code:
sudo netstat -tulpn | grep 20000
__________________
Rocky Jr. You may have my body & soul, but you will never touch my pride! If you have knowledge, let others light their candles at it. Certified to work on HP-UX / Sun Solaris / RedHat |
|
|||
|
Quote:
$ sudo iptables -L -n Code:
Password: Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT 0 -- 0.0.0.0/0 220.232.213.178 state RELATED,ESTAB LISHED ACCEPT tcp -- 0.0.0.0/0 220.232.213.178 tcp dpt:22 ACCEPT tcp -- 0.0.0.0/0 220.232.213.178 tcp dpt:8222 ACCEPT tcp -- 0.0.0.0/0 220.232.213.178 tcp dpt:8333 ACCEPT tcp -- 0.0.0.0/0 220.232.213.178 tcp dpt:902 REJECT 0 -- 0.0.0.0/0 220.232.213.178 reject-with icmp-po rt-unreachable Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination ACCEPT 0 -- 220.232.213.178 0.0.0.0/0 state RELATED,ESTAB LISHED ACCEPT udp -- 220.232.213.178 0.0.0.0/0 udp dpt:53 REJECT 0 -- 127.0.0.1 0.0.0.0/0 reject-with icmp-po rt-unreachable REJECT 0 -- 220.232.213.178 0.0.0.0/0 reject-with icmp-po rt-unreachable https://domain.com:20000 Code:
Unable to connect Firefox can't establish a connection to the server at domain.com:20000 Quote:
Code:
tcp 0 0 0.0.0.0:20000 0.0.0.0:* LISTEN 5 242/perl udp 0 0 0.0.0.0:20000 0.0.0.0:* 5 242/perl Quote:
B.R. satimis |
|
|||
|
Hi monk,
Thanks for you advice. Problem solved. Nothing wrong. Only ISP block ports 10000 and 20000. After their uplift "https://domain.com:20000" connects the server with the screen "Webmin, Account Information" displayed. On the screen user can change password. Quote:
Whether running; $ sudo /etc/init.d/rc.local to start iptables again ??? I usually do follows to restart iptables $ sudo /etc/init.d/rc.local stop $ sudo /etc/init.d/rc.local start On /etc/init.d/rc.local only 2 options available "start/stop" w/o restart/reload Quote:
Whether adding; Code:
iptables -I INPUT 7 -j ACCEPT -p TCP -d 220.232.213.178 --destination-port 10000:20000 $ cat /etc/rc.local Code:
#!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. #exit 0 # # INPUT # # allow all incoming traffic from the management interface NIC # as long as it is a part of an established connection iptables -I INPUT 1 -j ACCEPT -d 220.232.213.178 -m state --state RELATED,ESTABLISHED # allow all ssh traffic to the management interface NIC iptables -I INPUT 2 -j ACCEPT -p TCP -d 220.232.213.178 --destination-port 22 # allow all VMware MUI HTTP traffic to the management interface NIC iptables -I INPUT 3 -j ACCEPT -p TCP -d 220.232.213.178 --destination-port 8222 # allow all VMware MUI HTTPS traffic to the management interface NIC iptables -I INPUT 4 -j ACCEPT -p TCP -d 220.232.213.178 --destination-port 8333 # allow all VMware Authorization Daemon traffic to the management interface NIC iptables -I INPUT 5 -j ACCEPT -p TCP -d 220.232.213.178 --destination-port 902 # reject all other traffic to the management interface NIC iptables -I INPUT 6 -j REJECT -d 220.232.213.178 --reject-with icmp-port-unreachable # # OUTPUT # # allow all outgoing traffic from the management interface NIC # if it is a part of an established connection iptables -I OUTPUT 1 -j ACCEPT -s 220.232.213.178 -m state --state RELATED,ESTABLISHED # allow all DNS queries from the management interface NIC iptables -I OUTPUT 2 -j ACCEPT -s 220.232.213.178 -p UDP --destination-port 53 # reject all other traffic from localhost iptables -I OUTPUT 3 -j REJECT -s 127.0.0.1 --reject-with icmp-port-unreachable # reject all other traffic from the management interface NIC iptables -I OUTPUT 4 -j REJECT -s 220.232.213.178 --reject-with icmp-port-unreachable B.R. satimiis |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to change root password | sandromax | Solaris/OpenSolaris | 4 | 10-11-2007 02:43 AM |
| Change root password MySQL 5 | chiku | Databases servers | 1 | 01-16-2007 08:46 PM |
| HP UX user lock password, change password, password aging | rockdalinux | HP-UX | 0 | 12-20-2006 02:36 PM |
| How to Change Password | puppen | Linux software | 6 | 06-06-2006 01:56 PM |
| change password under linux | Linux software | 1 | 01-18-2006 07:38 PM | |