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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

forwarding ports through 515E

Status
Not open for further replies.

gtmits

IS-IT--Management
Dec 13, 2002
13
US
hello all,

Im super new to the pix environment. In the past i have worked with those little home routers from linksys that spell everything out for you real nicely. :p

what im trying to do is forward ports to s certain inside IP address.

What is the command to do this with the 515E running 6.22 software?

I need to forward port 25, 80, 110, 21, to my internat of 192.168.1.120

and i need to forward port 4662 to 192.168.1.10


This 515E doesnt have a nice little wizzie wig program like linksys for easy forwarding of ports like this. How would i do that. Can someone explain it to me in 2 year old speak :p


thanks in advance
 
There are a couple of different ways to do it, both using
"static" commands in conjunction with access-lists. Could you tell us what you have for public IP's, and what addresses are used for what so we can better answer your question based upon your specs? We're most insterested in how many are available. Just mask out the first couple of bytes for privacy.

-gbiello
 
is there a way i can cut and paste that info from the pix box itself?
 
If you're connected with Hyperterm, do a "write term" and cut and paste. With NT4/9x telnet, do a "start logging" from the menu. I don't know how with W2K/XP telnet.
 
PIX Version 6.2(2)
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password M3/isyKkrljwl775 encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
hostname <myfirewall>
domain-name <mydomain.com>
fixup protocol ftp 21
fixup protocol http 80
fixup protocol h323 h225 1720
fixup protocol h323 ras 1718-1719
fixup protocol ils 389
fixup protocol rsh 514
fixup protocol rtsp 554
fixup protocol smtp 25
fixup protocol sqlnet 1521
fixup protocol sip 5060
fixup protocol skinny 2000
names
pager lines 24
interface ethernet0 auto
interface ethernet1 auto
mtu outside 1500
mtu inside 1500
ip address outside *.*.*.163 255.255.255.240
ip address inside 192.168.1.1 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
pdm location 192.168.1.5 255.255.255.255 inside
pdm location 192.168.1.120 255.255.255.255 inside
pdm history enable
arp timeout 14400
global (outside) 10 interface
nat (inside) 10 0.0.0.0 0.0.0.0 0 0
route outside 0.0.0.0 0.0.0.0 *.*.*.161 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h323 0:05:00 si
p 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 192.168.1.0 255.255.255.0 inside
http 192.168.1.120 255.255.255.255 inside
http 192.168.1.5 255.255.255.255 inside
no snmp-server location
no snmp-server contact
snmp-server community public
no snmp-server enable traps
tftp-server inside 192.168.1.120 2_pix622
floodguard enable
no sysopt route dnat
telnet 0.0.0.0 0.0.0.0 inside
telnet timeout 5
ssh 0.0.0.0 0.0.0.0 outside
ssh timeout 5
terminal width 80
Cryptochecksum:2ed38a14c334b845bd77ed1afc942351
: end



thanks here is what i got.
Once again im pretty new to the command prompt and this type of firewall, so try to explain it like im a two year old :p

 
Great. Here we go. First, pick 2 public IP's you are not using, like *.*.*.16X and *.*.*.16Y. Make sure they are in your assigned range. Then the commands to add to your config would be this:

access-list outsidein permit tcp any host *.*.*.16X eq 25
access-list outsidein permit tcp any host *.*.*.16X eq 80
access-list outsidein permit tcp any host *.*.*.16X eq 110
access-list outsidein permit tcp any host *.*.*.16X eq 21
access-list outsidein permit tcp any host *.*.*.16Y eq 4462
static (inside,outside) *.*.*.16X 192.168.1.120 netmask 255.255.255.255
static (inside,outside) *.*.*.16Y 192.168.1.10 netmask 255.255.255.255
access-group outsidein in interface outside


-gbiello
 
great i can understand that :p

from what your saying i need 2 new IPs that the ISP assigned me.

they gave me a range of 10 IPs. so i just pick two other ones besides the one *.*.*.163. and use two others.

Ok great i got that one.

now how does it work. if im setting up a mail server, and im using a 3rd party name server, BTW. then i need to make sure that the IP i list in the name server is the one that i pick to be forwarded? or do i use the *.*.*.163 still?
 
last question you have been alot of help.

If i make a mistake, how do i take away the forwarding?

let say i dont want to forward 4462 to 192.168.1.10 anymore and i want to remove that line. how is that done?
 
You use a mask of 255.255.255.240 on your outside interface. That is a range of 16 addresses. Subtract 2 for network (.160) and broadcast (.171) gives you 14. Subtract 2 more for the Internet router (.161) and the outside interface on the PIX (.163) gives you 12 usable IP's. You can do port redirection and fake more, but I don't want to confuse you with the facts here.

For mail etc, use *.*.*.164 and for your server with port 4662 (or 4462, one must be a typo) use *.*.*.165.

To remove any line in the config, go into (config)# mode and type the line again, except with a &quot;no&quot; in front, like
&quot;no access-list outsidein permit tcp ...&quot;

Test the mail server by telnetting to *.*.*.164 on port 25 from a machine outside your firewall. You should get a response.

hope this helps,
-gbiello
 
HI gtmits.

> This 515E doesnt have a nice little wizzie wig program ...
The pix actualy has a GUI program.
It is not perfect but gives you most of the options.
I guess that you know it already but if not, simply point your workstation to:

You can find more info here:

Bye
Yizhar Hurwitz
 
gbiello, man thank you for the support. you have been a real big help.

Yizhar thx for the tip, ive used PDM before but it is real buggy.



thanks again
 
ok great, i got everything set up nicely

ive been reading about some of the older problems with cisco pix and FTP stuff.

how do i turn on the FTP port itself? when i do a port scan it says my FTP port is closed and its not allowingme to FTP outside of the firewall, nor is it letting anyone else FTP inside?

is there a solution to this?

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top