[Pardus-devel] Firewall Manager code

Rajeev J Sebastian rajeev.sebastian at gmail.com
Mon May 17 12:21:49 EEST 2010


2010/5/17 Bahadır Kandemir <bahadir at pardus.org.tr>:
> Pazar 16 May 2010 günü (saat 22:23:12) Rajeev J Sebastian şunları yazmıştı:
>> Hi,
>>
>> Where is the code for the Firewall manager settings panel, in
>> particular, the code for the Internet Sharing?
>>
>> For me, when I turn on Internet sharing it creates a new ethernet
>> profile with a 172.x.x.x address, which I would like to avoid. (My
>> network is already configured with static IPs in the range 192.168.0.X
>> and all routes/default-gw has been set to 192.168.0.5)
>
> Hi,
>
> iptables package comes with a COMAR script that provides a backend for
> Firewall Manager.
>
> Script is installed to /var/db/comar3/scripts/Network.Firewall/iptables.py
>
> Line 258 contains that hardcoded IP address

Hi Bahadir,

Yeah, I got the same early this morning, and I figured that the IP
address is hardcoded in that file but also hardcoded in the dhcp
configuration. I'm guessing that you expect all the machines in the
network to be configured with DHCP, and I agree that the most user
friendly way to do it :) (Thanks to Pardus devels for that!)

Right now, im reconfiguring all the machines to use DHCP. The reason I
had manually set IPs before was because I was using Pardus 2007 as my
router, and now it has been updated to 2009.

Regards
Rajeev J Sebastian

PS: Not sure if this is worth it or not, but "pisi info -f iptables",
does not show the /var/db/comar3/scripts/Network.Firewall/iptables.py
... which made it a bit difficult to find initially. It does say that
it provides System.Service and Network.Firewall though.


More information about the Pardus-devel mailing list