LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 04-16-2002, 09:23 PM   #1
FunkFlex
Member
 
Registered: Jan 2002
Location: UK
Distribution: Redhat 7.2
Posts: 35

Rep: Reputation: 15
How do I portforward webmin/ssl/ssh (the whole world) onto another box


1) https uses ssl.. correct?

2) Do I need to open the port for https/ssl 443 inorder to serve https?

3) I want to foward ssl and webmin to another linux box, how do i do that? I've tried these commands:
$IPT -t nat -A PREROUTING -p tcp --dport 10000 -i $IEXT -j DNAT --to 10.0.0.2
$IPT -A FORWARD -p tcp -i $IEXT -o $IINT -d 10.0.0.2 --dport 10000 -j ACCEPT

are there any other ports that webmin might use?
 
Old 04-17-2002, 01:47 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
1. Yes.
2. Yes. "Opening a port" is done by the webserver, the IANA designated port is 443/tcp, but you could SSLify any port, redirect port 80 and 808 to 443 if you want to go SSL-only, etc etc, it's all in how you configure the daemon. *This doesn't count for packages that SSLify their own connections like Webmin using some Perl-SSL module, it doesn't need port 443 open...
3. Run netstat and find out, but I think Webmin only runs 10000/tcp. Btw hope you're aware Webmin has plaintext passwds in older versions...
 
Old 04-17-2002, 07:18 AM   #3
FunkFlex
Member
 
Registered: Jan 2002
Location: UK
Distribution: Redhat 7.2
Posts: 35

Original Poster
Rep: Reputation: 15
Older versions of Webmin uses plain text!!

ATM i've got the very latest webmin version released a couple of days ago.. does it still matter?
 
Old 04-17-2002, 11:33 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Wouldn't know. Better check their website for that.
 
Old 04-17-2002, 12:48 PM   #5
PostDeals
Member
 
Registered: Mar 2002
Location: New Jersey, USA
Distribution: Suse 8.0
Posts: 39

Rep: Reputation: 15
i have tried

iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT


will that do?
 
Old 04-17-2002, 08:30 PM   #6
FunkFlex
Member
 
Registered: Jan 2002
Location: UK
Distribution: Redhat 7.2
Posts: 35

Original Poster
Rep: Reputation: 15
I've done it..

the webmin service uses port 10000

but the client (browser) uses a range of unprivalaged source ports
hence the final resolution was:
$IPT -t nat -A PREROUTING -p tcp --sport $UNPRIVPORTS --dport 10000 -i $IEXT -j DNAT --to 10.0.0.2
$IPT -A FORWARD -p tcp -i $IEXT --sport $UNPRIVPORTS -o $IINT -d 10.0.0.2--dport 10000 -j ACCEPT
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Webmin boot and SSL dkpw Slackware 2 04-11-2005 12:25 PM
Webmin and SSL Kanon Linux - Networking 0 02-27-2005 11:55 AM
Dissable SSL in Webmin Sevoma Linux - Software 3 01-27-2005 06:47 PM
SSL and Webmin question chimp999 Linux - General 1 10-06-2004 07:59 AM
SSL With Webmin craigvanham Linux - Software 3 08-04-2004 09:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration