[solved] Iptables - open port still gets rejected

I am trying to open 2 ports in my firewall,5582 udp and 61185 udp and tcp. However after reading up on iptables and following this guide  (https://wiki.archlinux.org/index.php/Si … l_firewall)  these ports are still being blocked. I am new to iptables, and I've gone over the rules but still not seeing what is rejecting it. Note that 61185 gets rejected not dropped at lest the tcp. All other tested tcp ports are dropping. I have not yet been able to test udp but i assume that its not working ether.  Here's my iptables rules.
# Generated by iptables-save v1.4.10 on Tue Jan 18 15:37:23 2011
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [2235:279476]
:TCP - [0:0]
:UDP - [0:0]
-A INPUT -s 127.0.0.0/8 -i wlan0 -j DROP
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state INVALID -j DROP
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A UDP -p udp -m udp --dport 5582 -j ACCEPT
-A UDP -p udp -m udp --dport 61185 -j ACCEPT
-A TCP -p tcp -m tcp --dport 61185 -j ACCEPT
-A INPUT -p udp -m state --state NEW -j UDP
-A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -m state --state NEW -j TCP
-A INPUT -j REJECT --reject-with icmp-proto-unreachable
COMMIT
# Completed on Tue Jan 18 15:37:23 2011
# Generated by iptables-save v1.4.10 on Tue Jan 18 15:37:23 2011
*nat
:PREROUTING ACCEPT [1765:224576]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [2859:262280]
:POSTROUTING ACCEPT [2860:262320]
COMMIT
# Completed on Tue Jan 18 15:37:23 2011
Last edited by tsr-nc (2011-01-22 01:06:44)

yes iptables is part of my DAEMONS array.I have reset my /etc/sysctl.conf.
sorry my previous post i ran those commands with iptables disabled and my receiving program off.
Your original post said you are trying to open UDP 5582 and TCP+UDP 61185, however there is nothing on your computer listening for these ports, so you are getting the connection rejected messages because iptables is allowing the packet, but the kernel has nowhere to send the packet (ie, a listening application process) so the kernel closes the connection attempt.
Thank you i didn't understand that before
updated
iptables -nvL
Chain INPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 DROP all -- wlan0 * 127.0.0.0/8 0.0.0.0/0
5449 1026K ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
1 40 DROP all -- * * 0.0.0.0/0 0.0.0.0/0 state INVALID
953 400K ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
60 8029 UDP udp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW
21 924 TCP tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp flags:0x17/0x02 state NEW
80 8909 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-proto-unreachable
Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 6682 packets, 1176K bytes)
pkts bytes target prot opt in out source destination
Chain TCP (1 references)
pkts bytes target prot opt in out source destination
1 44 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:61185
Chain UDP (1 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:5582
0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:61185
netstat -tunlp
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:8118 0.0.0.0:* LISTEN 4042/privoxy
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 4073/cupsd
tcp 0 0 0.0.0.0:3128 0.0.0.0:* LISTEN 25380/(squid)
tcp 0 0 127.0.0.1:9050 0.0.0.0:* LISTEN 4071/tor
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 4071/tor
tcp 0 0 127.0.0.1:58846 0.0.0.0:* LISTEN 5472/python2
tcp 0 0 127.0.0.1:32000 0.0.0.0:* LISTEN 30205/java
tcp 0 0 0.0.0.0:9030 0.0.0.0:* LISTEN 4071/tor
tcp 0 0 ::1:631 :::* LISTEN 4073/cupsd
tcp 0 0 ::1:8888 :::* LISTEN 30205/java
tcp 0 0 ::ffff:127.0.0.1:8888 :::* LISTEN 30205/java
tcp 0 0 ::ffff:192.168.1.1:8058 :::* LISTEN 30205/java
tcp 0 0 fe80::215:afff:fe0:8058 :::* LISTEN 30205/java
tcp 0 0 :::6600 :::* LISTEN 4022/mpd
tcp 0 0 ::1:9481 :::* LISTEN 30205/java
tcp 0 0 ::ffff:127.0.0.1:9481 :::* LISTEN 30205/java
udp 0 0 0.0.0.0:51774 0.0.0.0:* 5472/python2
udp 0 0 0.0.0.0:631 0.0.0.0:* 4073/cupsd
udp 0 0 0.0.0.0:4827 0.0.0.0:* 25380/(squid)
udp 0 0 0.0.0.0:43802 0.0.0.0:* 25380/(squid)
udp 0 0 0.0.0.0:3130 0.0.0.0:* 25380/(squid)
udp 0 0 0.0.0.0:3401 0.0.0.0:* 25380/(squid)
udp 0 0 0.0.0.0:44777 0.0.0.0:* 5472/python2
udp 0 0 :::56760 :::* 30205/java
udp 0 0 :::5582 :::* 30205/java
udp 0 0 :::8008 :::* 30205/java
udp 0 0 :::8008 :::* 30205/java
udp 0 0 :::1900 :::* 30205/java
udp 0 0 :::1900 :::* 30205/java

Similar Messages

  • Inbound processing email still getting rejection email in my inbox

    Hi experts,
    I am processing a email in my inbound, the mail gets processed perfectly
    Still i get a rejection mail from sap stating:
    Delivery has failed to these recipients or distribution lists:
    xyzATsubdomain.company.com
    An error occurred while trying to deliver this message to the recipient's e-mail address. Microsoft Exchange will not try to redeliver this message for you. Please try resending this message, or provide the following diagnostic text to your system administrator.
    The following organization rejected your message: subdomain.company.com.
    Sent by Microsoft Exchange Server ****
    Diagnostic information for administrators:
    Generating server: sap.company.com
    xyzATsubdomain.company.com
    sap.company.com #554 Cannot process message in SAP System ##
    Regards,
    Suhail
    Edited by: suhail khan on Jun 24, 2011 12:57 PM

    Sorry, not a Firefox support issue as Firefox doesn't do email, it's a web browser.
    If you are using Firefox to access your mail, you are using "web-mail". You need to seek support from your service provider or a forum for that service.
    If your problem is with Mozilla Thunderbird, see this forum for support.
    [http://www.mozillamessaging.com/en-US/support/] <br />
    or this one <br />
    [http://forums.mozillazine.org/viewforum.php?f=39]

  • I've used Firefox for years w/no problem but now I can't get a window to open I still get the menu bar on top. When I try to click open a new window nothing happens. I have a Mac.

    I never have problems with Firefox before. I usually don't put my Mac on sleep mode but I did do that last night. I don't know if that caused the problem or not. I tried to restart my computer thinking that might help but it didn't.

    Try:
    *http://kb.mozillazine.org/Corrupt_localstore.rdf
    You can also try to move (delete) the Firefox plist file.<br />
    See [http://www.macfixit.com/article.php?story=20060606082246983 How .plist files become corrupt and troubleshooting the results]<br />
    Go to "Library > Preferences" and remove the plist file for Firefox (org.mozilla.firefox.plist).

  • Still getting emails

    Hi
    With kind help from the forum my problem has now been solved, although I was still getting email notifications from every  topic, after advice I was directed to the "email notification preferences" where I think I stopped all notifications by putting a spot in "NO" for every preference, although I would like to leave my own topic open for emails for a little longer.
    Unfortunately I am still inundated with email notifications for each topic on the forum, have I missed something? as my inbox is still full of email notifications which I would like to stop, regards Robert.  

    Those settings are for “Future” discussions. Those don’t affect subscriptions you already have set up.
    To change your existing notifications:
    Go to Your Stuff at the top of any forum page
    Click on Profile
    Click on Manage Email Notifications in the Actions panel
    This will bring up a list of all your subscriptions where you can select individual ones to remove or you can click the box at the top of the list to select all on the page and then click Remove at the bottom of the page.

  • After downloading the mac os x 10.6.8 I can't open safari. It first told me that I could not run it with Safari 5.1 so I downloaded safari 6 because I had read that that would solve the problem. However I am still getting an error message. HELP!!

    After downloading the mac os x 10.6.8 I can't open safari. It first told me that I could not run it with Safari 5.1 so I downloaded safari 6 because I had read that that would solve the problem. However I am still getting an error message. HELP!!

    I see this on Apple's support page:
    Available for: OS X Lion v10.7.5, OS X Lion Server v10.7.5, OS X Mountain Lion v10.8 and v10.8.1

  • After closing out, FF will not restart, says it is already running forcing me to reboot. I have removed and re-installed FF and still get the same message when trying to open the internet using FF. How can this be fixed?

    When I close out Firefox, and return later to use the internet, I click on Firefox and it gives me a message stating that Firefox is already running and needs to be closed before restarting or reboot my system. This occurs every time Firefox is closed and attempt to re-start it,,, not only at times,,,, EVERY time.
    I have tried removing Firefox from my system and re-installing to fix this issue however,,, this did not work. After re-installing, I still get the same message when attempting to restart Firefox.
    I have also tried Ctrl, Alt, delete to open the task manager and find there is no task to close.
    I do not have any problems when using IE, I prefer to use Firefox as it is faster and crashes less than IE.
    I am very frustrated at having to reboot my system each time I want to use the internet.
    How can this problem be repaired?

    There are various causes for this error, see [[Firefox is already running but is not responding]] for details.

  • I keep getting error message, "can't open application PACE because PowerPC applications are no longer supported." I've run Clean My Mac and I still get the error.

    I keep getting error message, "can't open application PACE because PowerPC applications are no longer supported." I've run Clean My Mac and I still get the error.

    Use the Finder "Go" menu while holding down the option key to expose your User / Library folder.
    Look in the Application Support folder for PACE items and delete them.

  • When i open iphoto i see my photo's for 1 second and then they are gone .The photo's are still there but i can see them only on the bottom or top of my screen when i try to open them i get a sign that it is not possible.Can somebody please  help me?

    when i open iphoto i see my photo's for 1 second and then they are gone .The photo's are still there but i can see them only on the bottom or top of my screen when i try to open them i get a sign that it is not possible.Can somebody please  help me?

    Have you upgraded to iPhoto 9.6 for compatibility with Yosemite? If not, try that first.
    It looks like iPhoto has lost the connection between the thumbnails and the original image files.
    This can be caused by a corrupted iPhoto library, or the originals have been deleted or moved.
    Try first to rebuild your iPhoto Library:
    If you do not have a current backup of the iPhoto library, make a copy of the library, but do not overwrite any previous backup.
    Launch iPhoto with the ⌥⌘-key combination (option-command) held down.
    Select "rebuild" from the first aid panel.  This may take a while for a large library.
    Can you now see your photos again?
    If not, rebuild the library with iPhoto Library manager as described by Old Toad:            Re: iphoto crashed

  • I have Photoshop CS5.1 (bought in 2011). The photoshop Camera Raw plug-in is not recognizing the format of my new Nikon D610. I updated the version of my Camera Raw plug in and am still getting this message when trying to open images in photoshop. Please

    I have Photoshop CS5.1 (bought in 2011). The photoshop Camera Raw plug-in is not recognizing the format of my new Nikon D610. I updated the version of my Camera Raw plug in and am still getting this message when trying to open images in photoshop. Please help.

    This link shows that ACR 8.3 supports the Nikon D610 and 6.7.1 was the final version for CS5.
    Camera Raw plug-in | Supported cameras
    So you can upgrade to CS6 and ACR 8.7.1
    or using the DNG converter, convert your Nikon raw files to dng format to open in CS5.
    Here is the download link: Adobe - Adobe Camera Raw and DNG Converter : For Macintosh : Adobe DNG Converter 8.7.1
    or Windows: Adobe - Adobe Camera Raw and DNG Converter : For Windows : Adobe DNG Converter 8.7.1
    And here is a great video tutorial on how to use the converter.
    https://www.youtube.com/watch?v=0bqGovpuihw
    Gene

  • FireFox won't open. Message (ss13.d11 missing from cumputer.Try reinstalling) I reinstalled and still get the message.

    I received a message from Webroot about a threat. I clicked remove threat. Now FireFox won't open. Message says "ss13.d11" Maybe (ssl3.dll) is missing from the computer. Try reinstalling the program to the computer. Reinstalled FireFox and I still get the message when I try to open FireFox. How do I reinstall ss13.d11?

    Hello sillysewer,
    I youve only been re installing the iTunes app itself, then I would recommend uninstalling all of the iTunes associated files as well.
    Check out this article named Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP found here http://support.apple.com/kb/ht1925.
    Regards,
    Sterling

  • Error when I try to open Firefox. Says Firefox is running in the background and cannot open. Suggests closing that window or restart system. This has happened several times recently. I reinstalled but am still getting the error. Any thoughts?

    I am getting an Error when I try to open Firefox that Says Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system. This has happened several times recently. I deinstalld and reinstalled but am still getting the error. Any thoughts?

    This happens to me as well. However, I have a shortcut on my desktop as well as my quick start bar. When this has happened to me, I can usually log back in without restarting, by using the shortcut on the desktop rather than the usual quick start bar.
    I know this sounds weird, but it has worked for me about 80% of the time.

  • When I try to open video files purchased through iTunes in Quicktime, I get the message: 'Error 23132: an unknown error occurred. This never happened until I updated iTunes, but when I try to go back to the previous version, I still get the message.

    When I try to open video files purchased through iTunes in Quicktime, I get the message: 'Error 23132: an unknown error occurred. This never happened until I updated iTunes, but when I try to go back to the previous version, I still get the message. It is more convenient for me to play videos in Quicktime since iTunes is such a memory hog. Please help.

    You may get better results if you switch to this alternate version: iTunes for Windows (64-bit - for older video cards) and, if needed, reinstall QuickTime. The new (nearly) all 64-bit version doesn't seem to play well with QuickTime. Perhaps if DRM authentication is required QuickTime needs to be able to see something that is part of the older 32-bit code.
    tt2

  • When I try to open Firefox 3.6 (Mac) by clicking on the icon, I get this message: "Close Firefox: A copy of Firefox is already open. Only one copy of Firefox can be open at a time." I've removed older versions and restarted, but still get this message. Wh

    I've just downloaded Firefox 3.6 (Mac). When I attempt to open, this message pops up: "Close Firefox: A copy of Firefox is already open. Only one copy of Firefox can be open at a time." I've removed older versions and restarted, but still get this message. What's going on?
    == This happened ==
    Every time Firefox opened
    == after I downloaded the latest version. ==
    == User Agent ==
    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-us) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7

    You might find your solution in [http://kb.mozillazine.org/Profile_in_use this article].

  • Can i still get a replacement for my iphone at a price if it's already been opened by a friend?

    hi,
    my iphone 5 came in contact with liqiud and it ont come on. a friend of mine opened it up to check the LCI and try to fix it. can i still get it replaced for a fee at an apple store? i tried but apparently they wont replace it if there has been third party interference with the phone. what should i do? thanks

    nw345 wrote:
    a friend of mine opened it up to check the LCI and try to fix it.
    Sorry, when you permitted your friend to do that, you forfeited the right to an out of warranty replacement.
    Apple makes it quite clear that if you or anyone else attempts to open the phone, not only is all warranty/support voided, but you forfeit the right to an out of warranty replacement.

  • I keep getting a error message when I open iTunes asking me to reinstall the 64 bit version. I have reinstalled but still get the message.

    When I open iTunes I keep getting a error message asking me to reinstall iTunes 64 bit version. I have reinstalled but still get the message. Does anyone know a fix for this?

    This is obviously a problem apple! Please look at your community boards and see that a number of people have issues with the latest update and sort out.
    I have tried a number of times to install the update and have failed getting the same message as you. Tried with the 32 bit instead & no luck. Ive come on here to see if anyone else has a solution & found we all have the same problem. Someone else tried the old uninstall reinstall trick to no avail. Please sort this out apple!!

Maybe you are looking for