On 22 November 2011 11:17, Thuo Wilson <lixton@gmail.com> wrote:


On 22 November 2011 10:14, Thuo Wilson <lixton@gmail.com> wrote:


On 18 November 2011 08:49, Edwin Ngige <edwinngige@gmail.com> wrote:
Hi team,

 
 
Am looking in a way I can forward any traffic passing thr a cisco router to use a specific host. i.e DNS.
 
Such that, any one I give connection via any last mile, I will force them use specific services from specific hosts.
What I mean is, if any of my users specify a dns like 8.8.8.8, I will force him use my DNS. Version of the cisco IOS is 12.4.
Pls Assist.

 
Edwin Ngige
254 722 841853


Last time i wanted to achieve something of this nature i used 2 things a)  route map b) access-list.

Wilson.

I realised i didnt help by my statement so here we go,

Something like this;

access-list 140 permit tcp 192.168.0.0 0.0.255.255 any eq http
access-list 140 permit tcp 172.16.0.0 0.0.255.255 any eq ftp

 route-map REDIRECT-XYZ permit 10
match ip address 140
set ip next-hop 1.2.3.4

Then redirect (DNS/HTTP etc) port from firewall.(iptables?)

E&OE.

Wilson./
 

Dont forget http is tcp. This was for illustration purpose.

Wilson.
 
_______________________________________________
Skunkworks mailing list
Skunkworks@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------

Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke