Re: AW: Add new target in mangle table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 2008-04-15 10:35, manuprivat@xxxxxx wrote:
>> >> >># iptables -t mangle -I PREROUTING -i eth2 -s 192.168.0.168 -j SADDR
>> >> >>--to-source 10.0.19.2
>> >> >
>> >> One question this throws up... how do you know the address is
>> >> 192.168.0.168?
>> >
>> >Actually, I dont know that! It is only an example to show the different
>> >IP-ranges. Excuse my improper representation.
>> 
>> The question is more of a technical one-- if you do not know the
>> source address the client will be using, how can you reliably
>> mangle the address?
>
>I modified the udhcpd from the busybox  - have a look in the attached
>file.
>To handle the different cases i wrote a shell script - also attached.

But if the client uses DHCP, why don't you hand out 10.0.x.x directly?
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux