Posted: 29 January 2010, 21:38 NAT prosba o wyjasnienie
Witam,
musze skonfigurowac NAT na routerze Juniper, niestety mam do routera zdalny dostep i musze to zrobic przez weekend. W poniedzialek rano pojedzie na site i tam juz bede odciety, wiec musze miec pewnosc, ze moja konfiguracja jest wlasciwa, nie mam prawa sie pomylic
Wpadl mi w rece dokument dotyczacy source nat:
Code:
source {
address-persistent
pool <pool name> {
address {
<low address> to <high address>;
}
{
pool-utilization-alarm {…}
rule-set <rule-set name>{
from {
interface <interface list>;
zone <zone list>;
routing-instace <routing-instance list>;
}
to {
interface <interface list>;
zone <zone list>;
routing-instance <routing-instance list>;
}
rule <rule-name> {
match {
source-address <source address/prefix list>;
destination-address <source address/prefix list>;
}
then source-nat {
inerface | off | pool <pool-name>;
}
}
}
Na routerze mam skonfigurowane trzy interfejsy, chce zrobic source na ge-0/0/1 na ge-0/0/0, od operatora mam port E1.
Czy w tym miejscu mam podac adres, na ktory bedzie sie odbywala translacja?
Code:
source {
address-persistent
pool <pool name> {
address {
<low address> to <high address>;
}
Tu masz podstawową konfiguracje source nat na srx:
set security nat source rule-set interface-nat from zone trust
set security nat source rule-set interface-nat to zone untrust
set security nat source rule-set interface-nat rule rule1 match source-address 0.0.0.0/0 destination-address 0.0.0.0/0
set security nat source rule-set interface-nat rule rule1 then source-nat interface
set security policies from-zone trust to-zone untrust policy permit-all match source-address any destination-address any application any
set security policies from-zone trust to-zone untrust policy permit-all then permit
Jak juz masz zdefiniowane zony to teraz mozesz pobawic sie NATem
Code:
security {
nat {
source {
rule-set NAT-LAN {
from zone inside;
to zone outside;
rule Netz-LAN {
match {
source-address 10.10.10.0/24;
destination-address 0.0.0.0/0;
}
then {
source-nat {
interface;
Co mniej wiecej oznacza ze pakiety z int inside z sieci 10.10.10.0/24 i begnace sobie w dowolnym IP na int outside zostana za PATowane.
Podobnie robisz dla ruchu z DMZ na outside a potem juz ustawiasz destination NAT dla uslug ktore maja byc widoczne w sieci.
No i na koniec definiujesz polityki ruchowe czyli skad ten biedny ruter ma wiedziec jaki pakiet przepuscic.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
This Website is not sponsored by, endorsed by or affiliated with Cisco Systems, Inc.
Cisco, Cisco Systems, CCDA, CCNA, CCDP, CCNP, CCIE, CCSI, CCIP, the Cisco Systems logo and the CCIE logo are trademarks or registered trademarks of Cisco Systems, Inc. in the United States and certain other countries.