ef99
![]() |
|
|
|
|
|||||||
| Firewalls IPFW, PF, IPF (but not limited) related discussion |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Network programming newb.....just playing around with some code I found online.
The port that the program is listening on is 3490, in the PF firewall manager, what service should be selected with port 3490 to ensure proper communication during a telnet session? Should I set up telnet for outgoing and incoming via port 3490? Below is the pic of my firewall manager ![]() I'm using emacs, if that helps Last edited by DutchDaemon; April 13th, 2012 at 21:41. |
|
#2
|
||||
|
||||
|
OS-X related questions should be asked on an OS-X forum.
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#3
|
|||
|
|||
|
I'm not using OS-X
|
|
#4
|
||||
|
||||
|
The service name comes from /etc/services. Port 3490 is not bound to a service name. So either put a name in there and use that, or keep using 'Unknown'. Note that the large majority of people here use /etc/pf.conf, where you don't need to define a name like that, though you can (e.g. 'port 22' and 'port ssh' are equivalent)..
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki Before you post: How to ask questions the smart way If you must know .. So, what does an Administrator/Moderator do? ---> Do not PM me with FreeBSD questions. I do not work here. <--- |
|
#5
|
|||
|
|||
|
Thanks for the reply.
The "Unknown" service entry in the picture I attached. It changes from telnet to unknown after a while. What would happen is, telnet session will connect, but I cannot communicate during session. I don't see the customized welcome message for each new accepted connection that is in the program. I type in the telnet window, but the program doesn't receive the message. If I do netstat -a I see the Recv-Q with bytes of pending data, but Send-Q is empty. I executed different programming projects, from different websites, but same results. So I assume that my firewall settings are to blame.
Last edited by DutchDaemon; April 14th, 2012 at 00:55. |
|
#6
|
||||
|
||||
|
Assuming you're running the program yourself and want to allow traffic from the outside in (and assuming it runs on the pf machine), a pf rule would look like this. Can't help you with any firewall managers, I don't use any.
Code:
pass in quick on em0 inet proto tcp from any to em0 port 3490 keep state flags S/SA
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki Before you post: How to ask questions the smart way If you must know .. So, what does an Administrator/Moderator do? ---> Do not PM me with FreeBSD questions. I do not work here. <--- Last edited by DutchDaemon; April 14th, 2012 at 04:42. |
|
#7
|
|||
|
|||
|
Thanks, added it, but still have the problem of having a successful telnet session connection, but not being able to send or receive messages. I will go to the development section for programming specific questions.
Last edited by DutchDaemon; April 14th, 2012 at 04:41. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [PF] Poor network performance with PF firewall | pva | Firewalls | 4 | October 9th, 2011 16:19 |
| Setting up home network | Frozen001 | Installing & Upgrading | 5 | June 1st, 2011 13:42 |
| Setting up firewall using IPFW | Mimmo91 | Firewalls | 3 | October 14th, 2010 06:31 |
| advice setting up a network | k2msmith | Networking | 6 | April 27th, 2009 06:09 |
| No network without open firewall. What am I missing? | fredBSD | Networking | 2 | March 18th, 2009 05:46 |