Open IP to on specific port

Hi!
I have one internal IP and two external IP adresses. I want to use one adress for allowing mail to my server and one address for sending mails to mobile phones.
I am not sure about how the NAT should look like. The ACL is no problem since I have two public adresses.
How do i NAT specific ports for specific adresses? 
10.1.1.2 should be NATted to 15.15.15.15 port 34
10.1.1.2 should be NATted to 15.15.15.16 port 443
/Lajja

Hello,
If you are running version 8.3 or above, you can apply the following commands:
object network obj-10.1.1.2.34
host 10.1.1.2
nat (Inside,Outside) static 15.15.15.15 service tcp 34 34 nds:
object network  obj.10.1.1.2.443
host 10.1.1.2
nat (Inside,Outside) static 15.15.15.16 service tcp 443 443
If you are running version 8.2 or less, you will need to apply the following commands:
static (Inside,Outside) tcp 15.15.15.15 34 10.1.1.2 34
static (Inside,Outside) tcp 15.15.15.16 443 10.1.1.2 443
Let me know how it goes.

Similar Messages

  • Any way to open specific ports?

    The new firewall is sure easy to use. A little too easy. I would like to open some ports for a server daemon that isn't running as root. How is this accomplished?
    Where is the list of opened ports?
    How are port conflicts handled?
    Any third party recommendations?
    Thanks,
    Kevin

    I have an application that uses a pref pane and supposed to open a specific port (in Tiger) for network or local file access, AccountEdge Network Edition (AENE). Supposedly this method opens the port you select. In Leopard it open it and something appears to close it after a couple of seconds. I tried to set the port, reinstall the pref and application, turn off the Firewall (System Preferences>Security>Firewall, really says 'Allow all incoming connections') all make no difference.
    It therefore seems to be an application upgrade issue with the program. ANyone have any other ideas? This set up is a clear departure from the Tiger firewall set up in many ways. I wonder if Apple told anyone about this?

  • How to open specific port using java program

    Hello,
    I want to open ,close port using java comm.plz help me how can i do it.is it possible
    by using java program.later i want to use that specific port to accept the server socket connection .plz
    help me.

    i try this java program.*but it get block in accept method*.tht mean i m not able to make connection with port.
    import java.sql.SQLException;
    import java.io.IOException;
    import java.net.ServerSocket;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    class MakeConn
         public final static int PORT = 7788;
    public static java.net.Socket clientSocket = null;
    public static java.io.PrintWriter pw = null; // socket output stream
    public static java.io.BufferedReader br = null;
    public static ServerSocket server_socket;
         public static void main(String[] args) throws SQLException
         try {
              server_socket = new ServerSocket(PORT);
    clientSocket = server_socket.accept();
    System.out.println("CLIENT>>>" + clientSocket);
         br = new java.io.BufferedReader(new java.io.InputStreamReader(clientSocket.getInputStream()));
    pw = new java.io.PrintWriter(clientSocket.getOutputStream(), true);
    String message = br.readLine().trim();
    System.out.println("message is"+message);
    pw.close(); // close everything
    br.close();
    clientSocket.close();
         catch (Exception ex) {
    ex.printStackTrace();
    }

  • Opening specific ports on Leopard's firewall

    How can I open a specific port - e.g. 49237 - on Mac OS X 10.5.2 firewall, rather than using the System Preferences GUI which points at apps?
    I understand that there is some sort of a Terminal command.
    Please advise

    Try this.....
    Log in with the Username of admin, and the password should be your router's Serial Number found on the bottom of the router on a sticker.

  • WRT54G: How do I limit access to specific ports, only to local IP's

    Using a WRT54G with Windows XP, and I've setup a web server that I'm still testing. Until I understand the security better, I want to limit access from outside IP's to the port that it's running on, but NOT limit access from the outside to services running on other ports. Is there a way to block a range of IP addresses (or conversely, only permit access for a limited range of IP addresses) to a specific port? So for example (assuming server's on Port 99, and IP address to the outside world is 99.99.99.99: Port 99: Blocked IP Range: 0.0.0.0-99.99.99.98, and 99.99.99.100-255.255.255.255 - OR Port 99: Allowed IP Range: 99.99.99.99 Alternatively, I would be interested to permit access to the web server port, only for certain MAC addresses. Is this pretty secure, and if so, how can this be done? I've poked around the router settings and spent a good deal of time researching this; any help would be greatly appreciated...

    Why do you want to block IP addresses:  "IP Range: 0.0.0.0-99.99.99.98, and 99.99.99.100-255.255.255.255" ?   This is everybody on the web, except your router!    If you really want to block all these people, just unplug your router from your Internet connection.  That is a block that cannot be hacked!
    Normally a server is assigned a fixed LAN IP address.  This address must be outside the DHCP server range of your router, and it cannot end in 0, 1, or 255.
    Next you forward a port (for example, 99) to the server's fixed LAN IP address.
    Data arriving at the Internet port of your WRT54G for port 99 will then be forwarded to your server.  If you have other Internet services (i.e. server B) running on port 1297, then data that arrives at the Internet port of your WRT54G for port 1297 will be directed to server B.   Assuming that you only have port 99 and port 1297 open, then any other unrequested data (for any other port) that arrives at the Internet port of your WRT54G will simply be ignored (and thereby blocked).    If you connect another computer to a LAN port of the WRT54G, connect to the Internet, and request data, then when that data arrives at the Internet port of the WRT54G, it will be allowed to pass, and it will be routed to your computer.
    In summary, by default, all router ports are closed.  The only way to get data through the router is either to open a port (using port forwarding, or alternatively, the UPnP function), or for someone (or some program) on the LAN to request data from the web.
    The router cannot limit the use of a port by MAC address.    When you open a port on your router, you are opening your server to invasion from anyone on the Internet.  So, your server must be setup to protect itself.   Rather than limiting server use by MAC address (which can be faked), your server should be setup to require a user name and password. 

  • Network ACL for two specific ports

    As far as I can tell there is no way to set Network ACLs such that only two specific ports are available. I'm using Oracle 11gR2.
    I'd like a HTTP port and an SMTP port open for the local loopback address. These are ports 7777 and 25. It's my understanding that you can have only one ACL per host. While it seems you can create more, any additional ACL's for the same host don't always work as expected. So does anyone have any advice as how I can do this? I'd rather not have every port between 7777 and 25 available but this is what I currently have...
    DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL(
    acl => 'local_loopback.xml'
    , host => '127.0.0.1'
    , lower_port => 25
    , upper_port => 7777
    );

    Billy  Verreynne  wrote:
    As far as I can tell there is no way to set Network ACLs such that only two specific ports are available. I'm using Oracle 11gR2.>Not so in my experience. An ACL can be for a specific target, but contain multiple ports for that target.
    E.g. I assign ports 80, 7777, 8080, and a few others, in a single web-acl.xml, to a network target (host or domain).
    Read the usage notes in Oracle® Database PL/SQL Packages and Types Reference.>Thanks I'll try that. I think we had problems in the past with separate ACL's containing rules for the same host, the response we got back from support was not to do that. This way didn't occur to me.

  • No weblogic server was found running on the specific port.

    Hello,
    While trying to target/connect to the weblogic server from Grid control 10.2.0.5,I'm getting the below error.
    1.Added the connection filter in the weblogic console to allow connections only from the grid control's host
    2.But while trying to connect from the grid control to the weblogic server for monitoring,its failed with the below exception,
    "No weblogic server was found running on the specific port.if the administration port is SSL enabled,specify the keystore and try again"
    3.However,I can able to connect to the weblogic if I dont give any connection filter arguments.
    "No weblogic server was found running on the specific port.if the administration port is SSL enabled,specify the keystore and try again"
    Appreciate for any pointers/help to resolve the issue.

    Hi,
    Next thing to do is to make sure that the parent paths issue is out of the way:
    Create a new asp file at the location: d:\inetpub\wwwroot\SAP NetWeaver Visual Composer\server\bin\test.asp
    with the following content:
    <%@ Language="JScript" %>
    <!-- #include file="..~server.ini" -->
    <%
       Response.write("Success");
    %>
    If you do not see the "Success" string printed out when you call your asp in the following way:
    http://server:port/VCServer/server/bin/test.asp
    then you still don't have this parent paths configured correctly.
    If you do then you should open an OSS message and let dev support have a look at your installation.
    Regards,
    Yaniv.

  • List opened file of a specific directory

    Hi, i would like to list all opened file of a specific duirectory. Maybe I could try to open all files in exclusive mode and catch the exception if the file already open. But i don't know how to open a file in exclusive mode. If you know a better way to do that you are welcome.
    Don't forget that no matter what program already open the file... it could be word, notepad... I'm working on windows, sorry :) !!!
    Thanks
    Zoop

    I also need to make the items in the list click'able so that I can press the display_name and then get the item displayed.
    I have now tried to make a procedure in the portal schema:
    as
        v_tal   number := 0;
        CURSOR tidCursor1 IS
            select DISPLAY_NAME, DESCRIPTION, TO_DATE(PUBLISH_DATE,'DD-MM-YYYY') DATO from portal.wwsbr_all_items WHERE CAID=53 and CATEGORY_ID=8992 order by ID desc;
        begin
            htp.p('<table border=0 width=100%>');
            FOR tidRec IN tidCursor1
            LOOP
                htp.p('<tr><td><b><font face="Arial" size="2" color="#014353">' || tidRec.DISPLAY_NAME || '</font></b><br><font face="Arial" size="1" color="#859CA6"> Skrásett tann ' || TO_CHAR(tidRec.DATO,'D. Mon ´YY') || '</font></td></tr><tr><td><font face="Arial" size="1" color="#014353">' || tidRec.DESCRIPTION || '</font></td></tr><tr><td> </td></tr>');
                v_tal := v_tal + 1;
                EXIT WHEN v_tal >= tal;
            END LOOP;
            htp.p('</table>');
    exception
    when others then
        null;
    end;But now I'm in doubt of how to insert a link to the item itself.
    I'm running portal 10.1.4, so it has path-names that go like this:
    htto://host.domain:port/portal/page/portal/myPageGroupName/PageName/SubPageName etc.
    How can I get an url to these items, that I can be sure will work. What table can I use for that?
    Thanks,
    Botzy
    Message was edited by:
    Botzy

  • How to add specific ports to OS X Lion firewall

    I need to add specific ports/port ranges to the OS X Lion clients' firewalls, any ideas?
    OS X Lion firewall settings only allow adding applications.  There is no "LDAP" application, it's built into the Network preferences settings.  The LDAP server is an OS X Lion Server running Open Directory.

    iosw wrote:
    I guess the flexibility in the regular Lion clients with ports is not possible.  It's only possible with OS X Lion Server, fair enough.
    No, you can configure both the client and server as much as you want. The only issue is that most people just don't understand what a firewall does (they think it is the same as anti-virus) so neither Apple nor I will bother explaining all the nitty-gritty details right off the bat.
    The client version of Lion doesn't need to be providing any services at all. Hence, there is really no need to run the firewall. If you are doing something fancy that the application firewall doesn't quite support, then you might want to run the real ipfw firewall instead. It is also installed on the client, but isn't a tool for the great unwashed.
    Personally, I find the fancy stuff pretty interesting, but I don't think you are doing that.
    We're trying to configure SSL within the Lion clients and didn't know if there was an incoming requirement.  There's a bug (logged even by Apple) when Lion client's attempt to bind to an SSL enabled Open Directory server.  So the firewall preferences wasn't the reason for this failure.  We're resorting to non-SSL binding until Apple fixes the problem, although we running on a private network and can get away with non-SSL for the time being.
    You might want to ask about this in the Server forums. This could be a situation where Apple isn't going to bother explaining the details on how to fix it because it would just confuse most people and they may already have it fixed in-house. It has already been discussed and some people say they have fixes. See the details in this thread.

  • How to force dg4msql to use a specific port

    I've configured an Oracle Database Gateway (Linux RHEL 5) to connect to my SQL Server boxes, but have a host based firewall (on the Linux box) in between them. Sniffing shows that the communication to port 1433 comes from a range of port numbers on the Linux box. Is there a way to force 'dg4msql' to only use a specific port?
    Removing the host based firewall is not an option, nor is opening up total communication between the two machines. Hopefully 'dg4msql' can be configured to use a specific port.

    Hi,
    It isn't possible to configure the gateway to onlyuse specific ports.
    This is not just a gateway issue but the way that SQL*Net works and you should see the same problem connecting from one Oracle database to another through a firewall.
    The only workround is to use a firewall which is SQL*Net compliant or a firewall which will limit the number of ports to a certain application.
    You could also review this note -
    Oracle and Firewalls: Answers to Frequently Asked Questions (Doc ID 2084440.6)
    Regards,
    Mike
    Edited by: mkirtley on Mar 2, 2010 8:45 AM

  • How do i configure telnet service to use a specific port number

    How do I configure a specific port number to the telnet service other than the default port number.  I opened /System/Library/LaunchDaemon/telnet.plist with XCode but it won't let me modify the port number.  Is there another place / item that I need to go to?

    Telnet is obsolete and insecure. Use ssh instead.

  • Sending sms to a specific port using j2se

    Hi,
    I want to send sms to a specific port from j2se platform not from j2me.Is there any way to send it through a modem or through a third party service provider like SMSJunction or Clickatell?If anyone have the code of doing this,plzz help me.
    Arnab.

    I don�t know but i use the JAVA ME JSR 120
    import javax.microedition.io.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    import javax.wireless.messaging.*;
    public class SmsConnecter // implements MessageListener
         String port = "5001";
         public SmsConnecter()
    public boolean sendSMS(byte data[]) {
         try {
              String destAddress = "sms://4681234567:5001";
              MessageConnection smsConnection =
                   (MessageConnection)Connector.open(destAddress);
              //Create binary message
              BinaryMessage binaryMSG = (BinaryMessage)smsConnection.newMessage(
                   MessageConnection.BINARY_MESSAGE);
              //Setting destination add
              binaryMSG.setAddress(destAddress);
              //Add payload data
              binaryMSG.setPayloadData(data);
              //Now send the message
              smsConnection.send(binaryMSG);
              smsConnection.close();
              return true;
         } catch(Exception e) {
              //System.out.println("e="+e);
             return false;   
    }Ad about port...
    Port number Description
    2805 WAP WTA secure connection-less session service
    2923 WAP WTA secure session service
    2948 WAP Push connectionless session service (client side)
    2949 WAP Push secure connectionless session service (client side)
    5502 Service Card reader
    5503 Internet access configuration reader
    5508 Dynamic Menu Control Protocol
    5511 Message Access Protocol
    5512 Simple Email Notification
    9200 WAP connectionless session service
    9201 WAP session service
    9202 WAP secure connectionless session service
    9203 WAP secure session service
    9207 WAP vCal Secure
    49996 SyncML OTA configuration
    49999 WAP OTA configuration
    //Mickenull

  • OS X Server 3 outgoing mail relay no longer supports a specific port

    Just installed OS X Server 3 on Mavericks. All is well, but for some reason it does not allow adding a specific port for "Outgoing mail relay: mailout.isp.com:587"
    OS X Server 2 used to allow this and i used it to connect to my smtp relay from my isp. It does not allow port 25 connections. If you try this in OS X Server 3 it just complains with "bad formatting"
    Can anyone confirm this?

    Found another thread discussing this.
    https://discussions.apple.com/message/23544605#23544605
    Answer from there:
    You need to edit the postfix main.cf file manually with your favorite text editor:
    sudo vi /Library/Server/Mail/Config/postfix/main.cf
    find the line
    relayhost = host.example.com
    change it to
    relayhost = host.example.com:587 (or some other port)
    then do a
    sudo postfix reload
    to reload postfix configuration files
    and
    sudo postsuper -r ALL
    to retry sending the e-mails again.
    NOTE: If you open OS X Server 3 app and go to Mail -> Relay outgoing mail through ISP -> Edit the Outgoing server address will show as BLANK, this is normal, just click cancel and leave it alone.

  • Open files from a specific directory

    Dear all,
    I have the following source code that simply selects files from a directory.
    private void openFile()
    JFileChooser fileChooser = new JFileChooser();
    fileChooser.setFileSelectionMode(
    JFileChooser.FILES_ONLY );
    int result = fileChooser.showOpenDialog( this );
    // user clicked Cancel button on dialog
    if (result == JFileChooser.CANCEL_OPTION )
    return;
    File filename = fileChooser.getSelectedFile();
    if (filename == null || filename.getName().equals( "" ))
    JOptionPane.showMessageDialog( this,
    "Invalid File Name",
    "Invalid File Name", JOptionPane.ERROR_MESSAGE );
    else
    // open the file
    try
         // Open an input stream
         FileInputStream fin1 = new FileInputStream(filename);
    // Read and print a line of text
    BufferedReader d1 = new BufferedReader(new InputStreamReader(fin1));
    abs = d1.readLine();
    outputArea1.setText("");
    outputArea1.append(abs + "\n\n");
    outputArea1.setCaretPosition(0);
    // Close our input and output stream
    fin1.close();
    catch (IOException e5) {
    JOptionPane.showMessageDialog(this, "Error Opening File", "Error", JOptionPane.ERROR_MESSAGE);
    } // end catch
    } // end else
    } // end private
    My question is: Can I force it to open files from a specific directory, and NOT from MyDocuments directory????
    thanks,
    vxc

    \r = return
    \n = linefeed
    \j = illegal escape character
    JFileChooser fileChooser = new JFileChooser("C:\j2sdk1.4.2\bin");
    You could/should use:
    (new File).pathSeparator
    or
    (new File).pathSeparatorChar
    and
    (new File).separator
    or
    (new File).separatorChar
    http://java.sun.com/j2se/1.4.1/docs/api/java/io/File.html

  • How to choose a specific port via Palimpsest?

    I found out today that Palimpsest Disk Utility can access remote harddrives via the SSH protocol. But Im not running SSH on my server via port 22. How do I choose a specific port?

    galo,
    willkommen zu den Apple Diskussionen.
    You don't state which version of Keynote you're using. Keynote 3 offers an option to restart the presentation after an inactivity of x min (at least 1 min).
    Look at Document inspector on the Document tab.
    In German: Klick im Informationen-Fenster auf das weiße Blatt und ggf. den Dokument-Button. Dort findest Du:
    Präsentation als Endlosschleife
    Präsentation neu starten nach Inaktivität von
    Viel Erfolg.
    If this information is useful to you, please mark it as "helpful" or "solved" using the little buttons in the titlebar of this message. Thank you.
    PowerBook G4 17", 1GB   Mac OS X (10.4.7)   iMac G5 20"; iPod 3G, iPod Shuffle, iSight

Maybe you are looking for

  • How do I build a field based on Checkboxes?

    I am VERY new to Javascript...but I think I can do what I want, just not sure of the syntax... I have a very large form with lots of checkboxes. I want to build (fill) some text responses based on those checkboxes. Assuming I have checkboxes 1 -3  (c

  • HT4623 How do I copy photo and music from MacBook Pro to Mini Ipad?

    I have a MacBook Pro that has my collection of Photos and Music. I recently bought a Mini Ipad and wanted to copy/transfer some of my Photos and Music from the MacBook to the Mini Ipad. Have tried but cannot perform drag and drop since the Ipad is no

  • Audiobooks - skipping end of track

    I've recently downloaded some audiobooks from AudioBooksforFree.com as mp3. Length 15 - 35 minutes per file. They play OK on iTunes but on the iPod they skip the last ten seconds. That means ten seconds before the end of the track it jumps to the sta

  • Simple question......please answer

    Hi, i know this is a realy simple or obveous question but i am confused.......... if i get an ariport extreme for my ibook, does that mean i need to buy an airport extreme card from my emac computer? is there anyway i could avoid having to buy someth

  • What is the Read/Write speed for a 250gb Serial ATA hard drive?

    Hello. I've been having some problems via my Mac (Kernel panic at start up) and is thinking wether or not it is the hard drive. Does anyone know what the Write speed is for the specified hard drive. I'm currently getting about 5 mbps and that feels a