Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Shorewall and Java applets
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
rah03
n00b
n00b


Joined: 26 Feb 2005
Posts: 19

PostPosted: Thu Jul 05, 2007 7:50 pm    Post subject: [SOLVED] Shorewall and Java applets Reply with quote

Hi,

I've been using shorewall on my router box for a while now so I'm quite familiar with it.

I just set it up on my desktop too and have configured it to let all traffic out and to block all ports coming in apart from those I specify in the rules. My policy and rules files are given below.

/etc/shorewall/policy
Code:

#
loc             net             ACCEPT
fw              net             ACCEPT
net             all             DROP            info
#
# THE FOLLOWING POLICY MUST BE LAST
#
all             all             REJECT          info

/etc/shorewall/rules
Code:

#
# SSH:
ACCEPT   net            fw              tcp     22
ACCEPT   net            fw              udp     22
# BitTorrent:
ACCEPT   net            fw              tcp     6881
ACCEPT   net            fw              tcp     14688

AllowPing net           fw

All seems to work as expected except for Java applets. With shorewall off (and iptables cleared), applets work fine. If I start shorewall (no other changes to iptables) then they take forever to start (Java applets that is), but they do eventually seem to start (like 5 minutes later in some cases). firefox freezes to user input while they are starting. This is the case for every Java applet I have tried. As I said, I'm not blocking outgoing connections at all so I can't see why this happening. Furthermore, shorewall is _not_ logging anything so it would appear it isn't intercepting anything, but it clearly is since everything is fine when I disable it.

Am stumped... anyone got any ideas?

Thanks,

Richard Hayden.


Last edited by rah03 on Sat Jul 07, 2007 6:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
thewtex
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jun 2007
Posts: 93

PostPosted: Thu Jul 05, 2007 7:59 pm    Post subject: Reply with quote

maybe looking at
Code:
watch 'netstat --inet -p'


while trying to open an applet will provide some clues
Back to top
View user's profile Send private message
rah03
n00b
n00b


Joined: 26 Feb 2005
Posts: 19

PostPosted: Thu Jul 05, 2007 8:11 pm    Post subject: Reply with quote

Hi,

Trying the applet at http://www.javatester.org/version.html yields just the following connections emanating from firefox (nothing from java or java_vm):
Code:

tcp        0      0 richardh:45997          linhost140.prod.me:http ESTABLISHED 17961/firefox-bin
tcp        0      0 richardh:45998          linhost140.prod.me:http ESTABLISHED 17961/firefox-bin

Cheers,

Richard.
Back to top
View user's profile Send private message
thewtex
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jun 2007
Posts: 93

PostPosted: Fri Jul 06, 2007 8:27 pm    Post subject: Reply with quote

I tested the java link you posted on my desktop with shorewall and it worked.

I don't have a loc zone configured on my box, and I am blocking outgoing traffic.
Back to top
View user's profile Send private message
rah03
n00b
n00b


Joined: 26 Feb 2005
Posts: 19

PostPosted: Sat Jul 07, 2007 6:46 pm    Post subject: Reply with quote

OK, sorted this by starting from scratch with a new set of configuration files - I was basing what I was doing on old ones from before I properly understood shorewall. I must've been doing something silly.

Cheers!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum