settings in rc.firewall


 
Thread Tools Search this Thread
Special Forums IP Networking settings in rc.firewall
# 1  
Old 07-11-2008
settings in rc.firewall

Hi everyone.

I'm trying to setup eMule and torrents on the local network behind the BSD server. And everything seems to work except one detail - it works as long as
Code:
${fwcmd} add deny log tcp from any to any in via ${oif} setup

is commented out. Meaning that not only required ports are open, but any other ports.
My question is how do I setup everything to pass only specific ports for torrent and eMule and block everything else?
I've tried writing similar rule, but allowing needed ports, but it doesn't work. For instance -
Code:
${fwcmd} add pass tcp from any to any in via ${oif} 4662 setup

.

Thanks in advance.
# 2  
Old 07-17-2008
I suppose this will work
pass in log quick on ${oif} inet proto tcp from any to any port 4662
# 3  
Old 07-23-2008
It doesn't work. And I don't know why. Is there any order for rules to appear? Or some other rules that can possibly block this one?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Help with firewall settings

Hi all, I am confusing myself with trying to set up a firewall and hope someone here can help me progress. I have a small cluster of three Raspberry PI's running NOOBS, which I believe is a Debian fork. I have a "Gateway" machine, if that is the right phrase, that has a USB Wifi dongle... (0 Replies)
Discussion started by: steadyonabix
0 Replies

2. HP-UX

IPC settings on HP-UX

Hi Experts, Need your help for checking te interprocess communications settings on HP-UX box. Using ipcs command I am able to view Message queue,semapohores etc, but from that output I m not able to understand how to determine if there is any issue with ipc settings and how to resolve that? (1 Reply)
Discussion started by: sai_2507
1 Replies

3. HP-UX

HP-UX history settings

Hi all My first post here. I've been told certain things regarding HP-UX's .sh_history file which I'm not so sure I agree with completely. These things are that the history file gets flushed on every clean shell exit (plausible, but I doubt it seeing as there are more than 11 thousand lines... (9 Replies)
Discussion started by: kinetik
9 Replies

4. HP-UX

Vi Editor Settings For Hp-UX

can any one provide me Vi Edior Settings for HP-UX I searched the forum i cound't able to find much information. 1) Need Vi editor setting for Color Code ... to work in C++ (Highlight Syntax .... as Vi Editor in Linux ... which we enable the syntax) 2)Delete , backspace , arrows , home ,... (3 Replies)
Discussion started by: girija
3 Replies

5. Linux

Ip settings

Hi, How to set ip address in linux. Regards, Guguli (1 Reply)
Discussion started by: guguli
1 Replies

6. AIX

hyperlink settings

Does anyone know the hyperlink settings to look at an AIX5L box? (1 Reply)
Discussion started by: vbagwell
1 Replies

7. BSD

settings in rc.firewall

Hi everyone. I'm trying to setup eMule and torrents on the local network behind the BSD server. And everything seems to work except one detail - it works as long as ${fwcmd} add deny log tcp from any to any in via ${oif} setup is commented out. Meaning that not only required ports are open,... (1 Reply)
Discussion started by: reality
1 Replies

8. Cybersecurity

SuSe firewall settings

I am trying to set up a home network, with router for internet access All computers, in both windows and Suse 9.3 can get to the internet. Gateway 192.168.2.1 Computers on static IPs 192.168.2.2-5 When I go into Suse, the samba shares can be seen, and used, so that part is working, but... (0 Replies)
Discussion started by: MadonnaC
0 Replies

9. Solaris

Duplex Settings

Hi All I've been having a lot of errors logged on the Cisco Catalyst (4000 series) which one of my Solaris servers is patched into. I have a feeling they are duplex related, but I'm a bit stuck as to how to confirm that. How do I: 1. Check the duplex settings on my eri0 card? 2. Set the... (3 Replies)
Discussion started by: saabir
3 Replies
Login or Register to Ask a Question