Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to setup a mail server and web server behind pix 506?

Status
Not open for further replies.

etaketa

Technical User
May 4, 2005
43
US
we've got a t-1 line with a bunch of ip addresses and i want to setup a mail server and a web server behind the pix.

pix outside interface ip address is XX.233.191.98
mail server ip is XX.233.191.99
web server ip is XX.233.191.100

ok, so what do i have to do now to allow the mail server to send receive email and the web server to be able to serve up web pages?

Building configuration...
: Saved
:
PIX Version 6.3(1)
interface ethernet0 auto
interface ethernet1 auto
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password gn8Iu7y8lhYxN8g5 encrypted
passwd gn8Iu7y8lhYxN8g5 encrypted
hostname crowsnest
domain-name clicksafety.com
fixup protocol ftp 21
fixup protocol h323 h225 1720
fixup protocol h323 ras 1718-1719
fixup protocol http 80
fixup protocol ils 389
fixup protocol pptp 1723
fixup protocol rsh 514
fixup protocol rtsp 554
fixup protocol sip 5060
fixup protocol sip udp 5060
fixup protocol skinny 2000
fixup protocol smtp 25
fixup protocol sqlnet 1521
names
name 10.0.0.192 vpn
name 10.0.0.16 mailserver
name 10.0.0.17 webserver
access-list inside_outbound_nat0_acl permit ip any vpn 255.255.255.192
pager lines 24
mtu outside 1500
mtu inside 1500
ip address outside XX.233.191.98 255.255.255.224
ip address inside 10.0.0.2 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
ip local pool vpn_ip_pool 10.0.0.200-10.0.0.254
pdm location 10.0.0.200 255.255.255.255 outside
pdm location vpn 255.255.255.192 outside
pdm location 10.0.0.0 255.255.255.255 inside
pdm location 10.0.0.0 255.255.255.0 outside
pdm location mailserver 255.255.255.255 inside
pdm location webserver 255.255.255.255 inside
pdm logging informational 100
pdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list inside_outbound_nat0_acl
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
static (inside,outside) XX.233.191.99 mailserver netmask 255.255.255.255 0 0
static (inside,outside) XX.233.191.100 webserver netmask 255.255.255.255 0 0
route outside 0.0.0.0 0.0.0.0 XX.233.191.97 1
timeout xlate 0:05:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h225 1:00:00
timeout h323 0:05:00 mgcp 0:05:00 sip 0:30:00 sip_media 0:02:00
timeout uauth 0:05:00 absolute
aaa-server TACACS+ protocol tacacs+
aaa-server RADIUS protocol radius
aaa-server LOCAL protocol local
http server enable
http 10.0.0.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
snmp-server community public
no snmp-server enable traps
floodguard enable
sysopt connection permit-pptp
telnet 10.0.0.0 255.255.255.0 inside
telnet timeout 5
ssh timeout 5
console timeout 0
vpdn group PPTP-VPDN-GROUP accept dialin pptp
vpdn group PPTP-VPDN-GROUP ppp authentication mschap
vpdn group PPTP-VPDN-GROUP ppp encryption mppe 128 required
vpdn group PPTP-VPDN-GROUP client configuration address local vpn_ip_pool
vpdn group PPTP-VPDN-GROUP client configuration dns 10.0.0.1
vpdn group PPTP-VPDN-GROUP pptp echo 60
vpdn group PPTP-VPDN-GROUP client authentication local
vpdn username test password *********
vpdn enable outside
dhcpd address 10.0.0.100-10.0.0.199 inside
dhcpd lease 3600
dhcpd ping_timeout 750
dhcpd auto_config outside
terminal width 80
Cryptochecksum:cbf820dc7cf1829c9d6121e43e79ef73
: end
[OK]

 
hello,

you are right (your config).

BUT:
i will need an access-list on the outside-interface to enable access to the web/mail-server.

this access-list should look like this:

access-list outside_acl permit tcp any host <pup-ip-webserver> eg 80

access-list outside_acl permit tcp any host <pup-ip-webserver> eg 443

access-list outside_acl permit tcp any host <pup-ip-mailserver> eg 25

then you must apply this access-list to an interface:

access-group access-list outside_acl in interface outside


if you do not that, all the incoming traffic will be blocked on the outside-interface of the firewall.

martin



----------------------------------
Martin Peinsipp, Austria
CCSA,
IT-Security-Administrator
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top