Welcome to Dream.In.Code
Become a Java Expert!

Join 150,105 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 1,871 people online right now. Registration is fast and FREE... Join Now!




Java Firewal

 
Reply to this topicStart new topic

Java Firewal, sugesstion,information,comment

prajayshetty
21 Jun, 2008 - 09:17 PM
Post #1

D.I.C Head
Group Icon

Joined: 27 Apr, 2007
Posts: 230



Thanked: 1 times
Dream Kudos: 25
My Contributions
hey guys after completing java networked robotics project i plan to make a firewall in java so need some suggestions comment or information
other project

that i have in mind is to make a cyber application
the basic idea on it is that i have a server and client software
whenever a client login for internet connection its name is shown on the server adn the duration when he had login and the bill and the time when he is wishing to logoff and it should logoff automatically

which one should i go for comment plzz

This post has been edited by prajayshetty: 21 Jun, 2008 - 09:50 PM
User is offlineProfile CardPM
+Quote Post

neotrumatrix
RE: Java Firewal
21 Jun, 2008 - 09:51 PM
Post #2

New D.I.C Head
Group Icon

Joined: 6 Oct, 2005
Posts: 49



Thanked: 3 times
Dream Kudos: 50
My Contributions
If you have a lead on something then it would be proper to add comments or suggestions .... How exactly do you intend in making a firewall ? Do you have something in mind already ?
User is offlineProfile CardPM
+Quote Post

prajayshetty
RE: Java Firewal
21 Jun, 2008 - 09:53 PM
Post #3

D.I.C Head
Group Icon

Joined: 27 Apr, 2007
Posts: 230



Thanked: 1 times
Dream Kudos: 25
My Contributions
QUOTE(neotrumatrix @ 21 Jun, 2008 - 10:51 PM) *

If you have a lead on something then it would be proper to add comments or suggestions .... How exactly do you intend in making a firewall ? Do you have something in mind already ?


well i dont have a lead for firewall ya but i have a lead for the other project the cybercontrol and i thinkso what i am thinking will go right do u want me to put logic of it u can check its if its right

This post has been edited by prajayshetty: 21 Jun, 2008 - 09:53 PM
User is offlineProfile CardPM
+Quote Post

neotrumatrix
RE: Java Firewal
21 Jun, 2008 - 10:00 PM
Post #4

New D.I.C Head
Group Icon

Joined: 6 Oct, 2005
Posts: 49



Thanked: 3 times
Dream Kudos: 50
My Contributions
QUOTE(prajayshetty @ 21 Jun, 2008 - 10:53 PM) *

do u want me to put logic of it u can check its if its right


Please ...
User is offlineProfile CardPM
+Quote Post

prajayshetty
RE: Java Firewal
21 Jun, 2008 - 10:07 PM
Post #5

D.I.C Head
Group Icon

Joined: 27 Apr, 2007
Posts: 230



Thanked: 1 times
Dream Kudos: 25
My Contributions
so here we go
planning:
there is a client and server in this project its a client and server application
there is login dialog box for member but it will go complex so let us keep it simple there is a dialogbox where user have to enter the name
when he clicks login the client will send following attributes to the server
1) name
2)time of login
3)and expected time of logout

we will create a thread that will keep on monitoring for the time of all the client this will be on server once the client reaches to a particular close time and before 2 mins server will send a string to client
if it says continue then we will increament the timer if not then we will logoff
for example in the server setting if we keep 1hr bill =10 or do something
then after 1 hr the server will send a message that ur bill is 10
but before allwoing the client to operate the server must make sure that particular slot is on or offed if its red then it suggest that admin has aoffed
so we cant allow it but i dont know how to keep those slots
a question
can i send multiple things to server
can i send all this 3 attribut in single time
or is other way better
when client makes a connection server notes the time
ne idea to send multiple message for example can i send i single send multiple string that a and b and server reads a and b diffrently

This post has been edited by prajayshetty: 21 Jun, 2008 - 10:26 PM
User is offlineProfile CardPM
+Quote Post

mensahero
RE: Java Firewal
22 Jun, 2008 - 04:48 AM
Post #6

c0mput3rz Are Only Human
Group Icon

Joined: 26 May, 2008
Posts: 664



Thanked: 17 times
Dream Kudos: 75
My Contributions
QUOTE

can i send multiple things to server
can i send all this 3 attribut in single time
or is other way better
when client makes a connection server notes the time
ne idea to send multiple message for example can i send i single send multiple string that a and b and server reads a and b diffrently


The way I understand your question is, you are trying to send a concatenated String into the server and hope that the server breaks the string into two different variable. Well if thats the case, I don't think that is easy but it is possible.

Just an opinion:

Its better if you send name, time, and other information separately.
User is offlineProfile CardPM
+Quote Post

neotrumatrix
RE: Java Firewal
22 Jun, 2008 - 05:36 AM
Post #7

New D.I.C Head
Group Icon

Joined: 6 Oct, 2005
Posts: 49



Thanked: 3 times
Dream Kudos: 50
My Contributions
I don't mean to discourage you but better go through this thread i found

http://forum.java.sun.com/thread.jspa?threadID=651334


User is offlineProfile CardPM
+Quote Post

mensahero
RE: Java Firewal
22 Jun, 2008 - 06:00 AM
Post #8

c0mput3rz Are Only Human
Group Icon

Joined: 26 May, 2008
Posts: 664



Thanked: 17 times
Dream Kudos: 75
My Contributions
QUOTE(neotrumatrix @ 22 Jun, 2008 - 06:36 AM) *

I don't mean to discourage you but better go through this thread i found

http://forum.java.sun.com/thread.jspa?threadID=651334


The last reply was really funny. biggrin.gif " You ungrateful cross-posting idiot. .." cool.

This post has been edited by mensahero: 22 Jun, 2008 - 06:02 AM
User is offlineProfile CardPM
+Quote Post

prajayshetty
RE: Java Firewal
22 Jun, 2008 - 09:18 AM
Post #9

D.I.C Head
Group Icon

Joined: 27 Apr, 2007
Posts: 230



Thanked: 1 times
Dream Kudos: 25
My Contributions

well thanks that will help me a lot iam always willing to get such suggesstion
User is offlineProfile CardPM
+Quote Post

prajayshetty
RE: Java Firewal
22 Jun, 2008 - 10:18 AM
Post #10

D.I.C Head
Group Icon

Joined: 27 Apr, 2007
Posts: 230



Thanked: 1 times
Dream Kudos: 25
My Contributions
QUOTE(prajayshetty @ 22 Jun, 2008 - 10:18 AM) *

well thanks that will help me a lot iam always willing to get such suggesstion

how about going for a proxyserver rather then firewall
User is offlineProfile CardPM
+Quote Post

NickDMax
RE: Java Firewal
22 Jun, 2008 - 01:16 PM
Post #11

2B||!2B
Group Icon

Joined: 18 Feb, 2007
Posts: 2,869



Thanked: 53 times
Dream Kudos: 550
My Contributions
As far as I can see (and I work in this area) you can't really make a Firewall in pure Java. Now you can develop some tools in JNI that would make it possible but these would be platform dependent.

The reason for this is that you need to interact with the operating system to control the ports. i.e. you will need some low-level access and you just don't get that in java.

You can create a java program that functions as a framework to run other java programs and functions as a firewall for those programs (i.e. your own virtual environment.)


Note that there are some opensource projects that offer extensions to Java's networking ability:

jpcap -- a network packet capture library.

You might check out JNA (Java Native Access). This opens a good part of the windows api which may give you the access you require (but strictly on a windows platform).


User is offlineProfile CardPM
+Quote Post

prajayshetty
RE: Java Firewal
22 Jun, 2008 - 10:54 PM
Post #12

D.I.C Head
Group Icon

Joined: 27 Apr, 2007
Posts: 230



Thanked: 1 times
Dream Kudos: 25
My Contributions

guys will need ur help now i decided to write code for cybercontrol application guys will start writing client code first and i will send string seprately to the server

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/9/09 12:48AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Java Help!

Java Tutorials

Reference Sheets

Java Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month