I
I
Ivan2015-01-28 18:02:19
linux
Ivan, 2015-01-28 18:02:19

How to set up Policy-based Routing on cisco so that there is a redirect to a stub?

How to set up Policy-based Routing on cisco so that a client with an ip from the 172.17.0.0/16 network,
when accessing any site, gets to the stub page?
PS
Examples from the Internet did not help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
throughtheether, 2015-01-28
@throughtheether

How to configure Policy-based Routing on cisco
Please specify the device model and firmware version (operating system).
How to set up Policy-based Routing on cisco so that a client with an ip from the 172.17.0.0/16 network, when accessing any site, gets to the stub page?
Not sure if PBR will help here. As one of the options - to close the traffic outside with the help of ACL and give any internal IPv4 address to all DNS(A) requests. The former is used on border routers, the latter on the DNS server.
If there is a host giving a stub, then you can redirect requests to it using Destination NAT (if the hardware supports it).
Can you help with an example? Clambered all that is possible. On dns it is possible somehow through view. But there are no examples either.
Here are links to examples of using view: 1 , 2 . Here are links to examples of how to resolve all hostnames to a given IPv4 address: 1 , 2 .
The settings will look something like this (it is not possible to check yet):
Named.conf file, add:
view internal {
   match-clients { 172.17.0.0/16; };
   zone "." IN {
    type master;
    file "db.fakeroot";
   };
};

Contents of db.fakeroot file:
$ORIGIN .
$TTL 1D
@    IN     SOA  @ none. ( 0 1D 1H 1W 3H );
     IN     NS   @
*    IN     A    a.b.c.d

where abcd is the IPv4 address of the stub host. You may need to add a view to handle requests from other clients.

I
Ivan, 2015-01-28
@bordakovskiy

Cisco 7602 as a concentrator
Server with centos6.6 stub page
I was looking towards dns. I also have bind on centos 6.6
Can you help with an example? Clambered all that is possible. On dns it is possible somehow through view. But there are no examples either.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question