LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-17-2010, 11:36 AM   #1
lamou23
Member
 
Registered: Jun 2010
Posts: 54

Rep: Reputation: 15
open a port in ubuntu


hello,

i want to know how can i open the udp/port 162 in my ubuntu 9.04 to receive snmp trap permanently.


il want that when i open my machine it opens automatically

please,help me

thanks
 
Old 06-17-2010, 11:49 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

There are various GUI tools available, but I'm not sure if you already have any of them installed.

But it's also easy from the command line. For example:
Code:
https://help.ubuntu.com/community/IptablesHowTo

  1. List your current rules:
     sudo iptables -L | less

  2. If port 162 isn't already enabled, do this:
     sudo iptables -A INPUT -p udp --dport 162 -j ACCEPT
'Hope that helps .. PSM

PS:
Other links that might help:
http://www.frozentux.net/iptables-tu...-tutorial.html

http://ubuntuforums.org/showthread.php?t=159661
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Set Ubuntu to Open One Port tuan_b918 Linux - Newbie 2 12-12-2009 09:50 PM
how do i open port 2095 on Ubuntu Linux 9.04 toady007 Linux - Newbie 2 11-19-2009 04:42 AM
[SOLVED] Getting web disk port open in Ubuntu rtrdspok Linux - General 2 10-16-2009 08:34 AM
How to Open Bittorrent Port on Ubuntu Ascendancy5 Linux - Newbie 6 11-21-2008 06:06 AM
cannot open port 8080 on ubuntu 6.06 kafnir Linux - Security 1 11-22-2006 05:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration