[Click] IPRewriter(input spec out of range)

Eddie Kohler kohler at cs.ucla.edu
Tue Feb 28 22:46:01 EST 2006


You are missing ipwr[1] -> ...whatever...


Lesedi Kgosietsile wrote:
> hie,
>  
>  I am trying to run the code below to divert port 80 packets FromDevice (eth0)to local machine then rewrite them again and send them to another machine.
>  
>  Unfortunately the IPRewriter gives me an error;mi code is as below.
>  
>  FromDevice(eth0) 
>          -> ip :: Strip (14);
>      
>  ip    -> CheckIPHeader2(INTERFACES 18.26.4.0/24 18.26.5.0/24 18.26.7.0/24 18.26.8.0/24 155.245.111.255)
>           
>          -> bufin :: IPClassifier (src tcp port 80);
>           
>          ipwr::IPRewriter(pattern 10.245.245.1 1024-65535 155.245.111.255 8000 0 1);                                
>           bufin -> ipwr -> Print(ofcourse) -> tohost :: ToHost(fake0)
>           
>          fromhost:: FromHost(fake0, 155.245.111.245/24) -> Print(rite) -> Discard;
>  
>  //the code is not complete but suppose to run ,the error it is giving me is "input spec 0: output port out of range"
>  
>  
>  
> 
> Lesedi
> 
> 		
> ---------------------------------
>  Yahoo! Mail
>  Use Photomail to share photos without annoying attachments.
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click



More information about the click mailing list