[Click] Could configure NAT in user level?
Dongyu Yang
yangdy.nwpu at gmail.com
Tue May 17 23:02:25 EDT 2011
Hi Eddie:
Thanks for your help!
Now I want to know, how it gets the Packet from the kernel, and send the
packet to kernel? Does ToHost.u must be used with FromHost.u? And I want to
know the difference between KernelTun and FromHost.u ToHost.u?
2011/5/12 Eddie Kohler <kohler at cs.ucla.edu>
> Hi Dongyu,
>
> The FTPPortMapper message is a bug in the configuration file. The third
> argument should be "0", not "to_world_pat 0 1". This fix has been checked
> in.
>
> The configuration really is meant to run in the kernel, though. I don't
> know what type of test you want to run. Userlevel ToHost demands a device
> name argument, such as eth0.
>
> E
>
>
>
> On 5/6/11 4:14 AM, Dongyu Yang wrote:
>
>> Hello !
>> When I use GatewayDevice instead of SniffGatewayDevice, and then the
>> problem of "undeclared element 'ToHostSniffers' " is OK! But the new
>> problem as bellow:
>>
>> ./conf/mazu-nat.click:214: While configuring ‘FTPPortMapper at 37 ::
>> FTPPortMapper’:
>> type mismatch: DATA_REWRITER_INPUT requires int
>> ../conf/mazu-nat.click:93: While configuring ‘ToHost at 5 :: ToHost’:
>> missing mandatory DEVNAME argument
>> ../conf/mazu-nat.click:105: While configuring ‘ToHost at 10 :: ToHost’:
>> missing mandatory DEVNAME argument
>> ../conf/mazu-nat.click:112: While configuring ‘ToHost at 14 :: ToHost’:
>> missing mandatory DEVNAME argument
>> Router could not be initialized!
>>
>> How could I modify the configure file to fix this problem?
>>
>> Thank your for your help!
>>
>>
>>
>>
>>
>> 2011/5/6 Dongyu Yang<yangdy.nwpu at gmail.com>
>>
>> Hello!
>>> I want to test NAT in click, so I use the NAT configure file
>>> conf/mazu-nat.click, but when I run it in user level:
>>> click conf/mazu-nat.click
>>>
>>> but the click report the error:
>>> conf/mazu-nat.click:84: undeclared element 'ToHostSniffers',
>>> assuming element class
>>>
>>> I found the ToHostSniffers element belong to linuxmodule, but I
>>> compile
>>> click in userlevel, so it report the eror!
>>>
>>> I want to know how counld I configure NAT in userlevel?
>>>
>>> Thanks for your help!
>>>
>>>
>>> _______________________________________________
>> click mailing list
>> click at amsterdam.lcs.mit.edu
>> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>>
>
More information about the click
mailing list