[Jwall-developers] Re: need some help...
Status: Alpha
Brought to you by:
zacklink
|
From: <jw...@sc...> - 2003-11-16 11:09:26
|
Hello Dirk,
On Sun, 16 Nov 2003 02:25:30 +0100
Dirk Dittert <di...@de...> wrote:
> Hi Zack,
>=20
> I am currently working on ManagedFirewall and I got some problems. I=20
> need default values for the ip stack settings in the dialog. I found=20
> the following constants:
>=20
> public final static int IP_FORWARD =3D 0;
> public final static int RP_FILTER =3D 1;
> public final static int ICMP_ECHO_IGNORE_BROADCASTS =3D 2;
> public final static int ACCEPT_SOURCE_ROUTES =3D 3;
> public final static int TCP_TIMESTAMPS =3D 4;
> public final static int TCP_SYNCOOKIES =3D 5;
> public final static int ACCEPT_REDIRECTS =3D 6;
> public final static int ICMP_IGNORE_BOGUS_ERROR_RESPONSES =3D 7;
> public final static int LOG_MARTIANS =3D 8;
> public final static int TCP_FIN_TIMEOUT =3D 9;
> public final static int TCP_KEEPALIV_TIME =3D 10;
> public final static int TCP_WINDOW_SCALING =3D 11;
> public final static int TCP_SACK =3D 12;
>=20
>=20
> And I guess these are the defaults:
>=20
> public String[] netParamsData =3D {
> "1",
> "2",
> "1",
> "0",
> "0",
> "1",
> "0",
> "1",
> "1",
> "30",
> "2400",
> "0",
> "0"
> };
>=20
> Do you know where to get the following data for each entry:
> - name
> - description
> - defaultValue (I guess I already got that one)
> - path (/proc/...)
Here are the values from the generated script, hth.
/bin/echo 1 > /proc/sys/net/ipv4/ip_forward
/bin/echo 2 > /proc/sys/net/ipv4/conf/all/rp_filter
/bin/echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
/bin/echo 0 > /proc/sys/net/ipv4/conf/all/accept_source_route
/bin/echo 0 > /proc/sys/net/ipv4/tcp_timestamps
/bin/echo 1 > /proc/sys/net/ipv4/tcp_syncookies
/bin/echo 0 > /proc/sys/net/ipv4/conf/all/accept_redirects
/bin/echo 1 > /proc/sys/net/ipv4/icmp_ignore_bogus_error_responses
/bin/echo 1 > /proc/sys/net/ipv4/conf/all/log_martians
/bin/echo 30 > /proc/sys/net/ipv4/tcp_fin_timeout
/bin/echo 2400 > /proc/sys/net/ipv4/tcp_keepalive_time
/bin/echo 0 > /proc/sys/net/ipv4/tcp_window_scaling
/bin/echo 0 > /proc/sys/net/ipv4/tcp_sack
> - setValue (does JWall want to set this value by default
>=20
> You said that there is one entry that might need to be removed. Which=20
> one?
>=20
> Dirk
>=20
J=F6rg
--=20
J=F6rg Sch=FCtter http://www.lug-untermain.de/
jo...@sc... http://www.schuetter.org/joerg/
ICQ: 298982789 http://mypenguin.bei.t-online.de/
|