Change firewall settings via terminal

hi,
I've got an old Powerbook that has a broken screen. Luckily I can access all my files and also ssh into the computer. Is it possible to open the firewall port 7001 via the command-line so I can use something like Desktop Transporter?
Thanks for any reply.
Gert
iBook G4   Mac OS X (10.4.5)  

Yes, of course. First question, though: why not take the firewall down altogether?
The thing is, ipfw uses sets of rules, and the order is significant, so it's not just adding a rule, it's where you add the rule. So, for example, if I see:
<pre>
$ sudo ipfw list
02000 allow ip from any to any via lo*
02010 deny ip from 127.0.0.0/8 to any in
02020 deny ip from any to 127.0.0.0/8 in
02030 deny ip from 224.0.0.0/3 to any in
02040 deny tcp from any to 224.0.0.0/3 in
02050 allow tcp from any to any out
02060 allow tcp from any to any established
02065 allow tcp from any to any frag
02070 allow tcp from any to any dst-port 22 in
02080 allow tcp from any to any dst-port 548 in
02090 allow tcp from any to any dst-port 427 in
02100 allow tcp from any to any dst-port 80 in
02110 allow tcp from any to any dst-port 427 in
02120 allow tcp from any to any dst-port 443 in
02130 allow tcp from any to any dst-port 21 in
02140 allow tcp from any to any dst-port 139 in
12190 deny tcp from any to any
65535 allow ip from any to any
</pre>
Obviously, you need to add your rule before the blanket deny rule, so enter:
$ sudo ipfw add 02150 allow tcp from any to any dst-port 7001 in
Or you could do a rule like:
$ sudo ipfw add 02005 allow ip from ME to any in
Where ME is your IP address (or MAC yo:ur:ma:ca:dd:re:ss) to allow all access from your computer. Unwise because both are easily spoofed, but you can delete it as soon as you're done:
$sudo ipfw delete 02005

Similar Messages

  • Preview failed because Adobe Muse could not make a connection over HTTP. The most common cause of this is Firewall software which prevents HTTP connections. You may need to change Firewall settings to allow Adobe Muse to make connections.

    Preview failed because Adobe Muse could not make a connection over HTTP. The most common cause of this is Firewall software which prevents HTTP connections. You may need to change Firewall settings to allow Adobe Muse to make connections.
    no firewall at all, in win 8.1, turned it off for all networks
    ftp and publish works just fine

    Hi,
    Please take a look at this post : Re: Adobe Muse - Preview Failed
    Regards,
    Aish

  • WRT54G v8: Unable to change some settings via the browser interface

    I have a WRT54G V8 router which I'm trying to set up as a wireless access point.
    I purchased it some time ago and flashed the firmware to version 8.00.2. I see there
    is a newer firmware version available, and I'm going to try flashing that to see if it
    helps, but wanted to ask here first.
    The problem is that when I connect to the router using a web browser, I can see
    the administration pages, and even change most settings, but some settings
    just snap back to their previous values.
    For example, I go to Setup -> Advanced Routing, and change Operating Mode
    from Gateway to Router. When I do, I see it changes to Router, then I see it
    talking to the HTTP server, and then it changes back to Gateway.
    This also happens in other areas, like trying to enable MAC address filtering -
    it won't let me enable it, and the Security Mode setting (under Wireless -> Wireless
    Security) - It won't let me select WPA2 Personal, among others.
    Note that I've had this router for a while, but decided to change how it was configured
    today, so I started by pressing and holding the reset button for >5sec to reset it to
    factory defaults and went from there.
    I'm assuming there must be some settings which are preventing these from taking,
    but I can't imagine any setting which should prevent me from enabling the MAC
    address filtering.
    Just in case this matters, I have the router connected to my in-home network using
    one of the 4 Ethernet ports, and don't have anything plugged into the Internet port.
    Also, I have turned off the DHCP server, and assigned a static IP address to the
    router. This is the IP I'm using to connect to the router's administrative pages via
    a browser running on one of the other PCs on my in-home network.
    The wireless access point is working, in that I can connect to my in-home network
    with my wireless client (laptop). 
    Can anyone help me understand what I'm doing wrong?
    Thanks,

    Thanks, Yes, I did reset the router. Just to clarify:
    - I was having the problem where making changes to some settings would cause the settings to revert back to the original settings. In fact, the settings would switch back before I would have a chance to click on the Save Settings button. Clicking on the button after the settings changed back, of course, saved the original setting. For example, I would click on a drop-down control to change a setting, see the browser communicate with the HTTP server, then the drop-down would just snap back to the original value. It wouldn't allow me to change it to a different value.
    - I reset the router, including holding the reset button for >5 seconds to force a full-reset. This didn't help.
    - I attempted to update the firmware with the latest version for my router (yes, I double-checked that I had the correct version for my router/version). This failed with a strange message and required that I do another reset of the router.
    It was after this failed attempt at the update that the problem went away. Now, I am able to change these particular settings and the changes stick.
    At this point, I updated the firmware to the latest version and it worked. After this, I am still able to make all the necessary setting changes and the router is performing as I need.
    Thanks for all the help,

  • "Unkown Error (-50)" when trying to change iPod settings via iTunes

    Hello everyone.
    I got an 5.5 iPod Video (30gb) for christmas and I can't update the name of the Ipod nor change the settings for music, TV shows, movies, podcasts, pictures or even reset it!
    I can however sync music, tv shows, movies and pocasts (not pictures).
    So I called Apple the other day and told them about my problem. The guy I was talking to told me that the only option avaible was to send the iPod to Apple and have them repair it. And so I did. It came back today with 1.2 update installed, instead of 1.2.1 which I used before I had the iPod sent for repair. The enclosed papers said that they (Apple) could not find any problems on the iPod itself and it's batterys and that "it met Apples specifications for acceptable performance, usablity and/or functionality."
    Yeah well... It doesnt. I'm using a PC with Windows XP, Service Pack 2 and I have USB 2.0. I have the latest version of iTunes and I had the latest firmwire update for my Ipod (1.2.1) and it didn't work.
    When I first plugged the iPod in today when it had version 1.2 installed it worked, but the next time I plugged it in.. well, it didnt work. So right now I'm using 1.2.
    I've tried re-installing iTunes and restoring the iPod via both iTunes and on the iPod itself. Nothing works. Can someone here help me out?
    Btw. I'm using an iPod dock.

    Edit: I am able to change settings WHILE my library is beeing synced...

  • Can't change firewall rules via preferences pane

    When I select the Sharing preferences and switch to "Firewall", I get the following error (in German): "Sie können die Firewall-Einstellungen nicht ändern, da beim Lesen der Einstellungen von Ihrem System ein Fehler aufgetreten is", which actually means something like "You can't change your firewall settings because an error occured while reading your settings".
    The error doesn't go away even after rebooting.

    I assume you have specified german as your default language, because if you haven't then german error is quite odd.
    Anyway, have you installed any other firewall software? Something has probably caused your firewall settings to either disappear or to change in a way that mac os x cannot read them.

  • I have recently downloaded 3.6 and now cannot retreive yahoo e-mail through bookmarks. Firefox is embarrassed and I'm pissed off. Have changed firewall settings to no avail. Help please

    operating system is windows vista home premium. I have changed my firewall settings to add and allow firefox. Now what??? I should have never downloaded this new version. Shame on me "If it ain't broke don't fix it" Right?!?

    operating system is windows vista home premium. I have changed my firewall settings to add and allow firefox. Now what??? I should have never downloaded this new version. Shame on me "If it ain't broke don't fix it" Right?!?

  • How do I change firewall settings?

    I have been having trouble for months logging into a website that I had zero problems with under my last provider (and am having no problems accessing using my laptop's Wi-Fi).  I've checked out just about every other possiblie cause and a friend thought it might be the firewall settings on my router (I have FIOS and the MI424WR Rev. F) and suggested I take a look at the settings and see what happens if I set them lower.
    Said friend, didn't however, tell me how to do that. How do I get to the firewall settings in order to do an experiment and see if it's the firewall that's causing my headaches? I'm getting desperate.

    Or how about a Bogon filter due to his current IP address now that he is on Verizon? The OP doesn't provide any info on messages he may be getting, so this is just a guess.
    Justin
    FiOS TV, 25/25 Internet, and Digital Voice user
    QIP7232, QIP7100-P2, IMG 1.9
    Keller, TX 76248

  • Changing firewall settings

    In the screenshot below, the panel on the left is from my System Information app. The panel on the right is what is shown in Firewall > Advanced.
    As you can see, there's some apps that have connections 'alllowed' on the left but which do not show up in the 'Advanced' listing of programs (I only highlighted two, but there's quite a few others).
    My question: how do I change the firewall permissions for those apps that I don't want to give access to but which aren't in the Firewall listing?
    TIA
    Sw

    I have the same question.  Firewall is set to block ALL ports, yet leaves HTTP(80), HTTPS(443) and SSH(22) open.  I have no webserver running, nor sshd.  But I would think it should block these ports!!  RUn "GMC's shields up and they are wide open.
    More and more I am getting frustrated with Max OS X.   Apple provides no easy way to "Refresh" a package.
    ie. If this were Fedora, Susi, etc. you can simply repair by grabbing the code for the firewall and refreshing it via wget().   But this is a mac, and you have to make it look like Linux first using  one of the methods like "Fink"...   I am so tired of this, I need to replace my older Macbook. Was looking at another $3000 for a new MBP.  I think I will buy a Dell with quad i7, 16GB ram for $350, and run a hypervisor and switch between Solaris and CENTOS so I have control.   I don't think I will really miss COCO that much.   Been a Unix guy all my life. Went from PC to Mac when I just "Need to get it done and it has to work".  Well security seems to SUCK on Mac OS X, so I have had it.  FOrget an Iphone5 I will go with a Galaxy III and android.  It is a painful change, but I am so tired of these issues.  I went from one MS mess to an APPLE mess.  I don't want to have to mess with the firewall, but I don't want my system exposed either, so I am forced to do so!!  Heck, might as well run Linux and control the firewall.  Actually better support and interfaces... no more iptables, nice gui's out there...
    GO from Bill Gates CRAP to Steve Jobs Crap.  Paying more for underpowered Mac hardware?  It just isn't worth it anymore IMHO.
    Also, support?  I don't see any reponses to thie persons question from 2011!! 
    No support.

  • How do I change firewall settings modified by VPN server?

    (This actually happened while I was running Lion, but seems to be the same problem under Mountain Lion)
    I installed Check Point Software Technologies Ltd. Endpoint Security VPN for Mac E75 VPN client on my iMac to access my employer's network.  It worked, but after I logged onto my employer's network, I lost contact to both my Time Capsule and Airport Express (Airport Utility stops "seeing" them, even though I am still connected over wi-fi to the internet through the airport router in the Time Capsule), and iTunes stopped "seeing" my iPad and iPhone.
    I looked on Check Point's support pages and saw this "Known Limitation":
    Issue ID:  00885275
    After Endpoint Security VPN is installed and a client is connected to the gateway, automatic sync with Time Capsule and iPhone Wi-Fi sync might not work correctly.
    This can happen because of a restrictive Desktop Policy.
    To resolve this issue, allow these services in the "Inbound rules" of the Desktop Policy:
    SSDP: UDP, port 1900.
    mDns: UDP, port 5353.
    Further research in the Endpoint Security VPN for Mac E75 Administration Guide told me this about "Desktop Policy":
    The Desktop Firewall
    Endpoint Security VPN enforces a Desktop Security Policy on remote clients. You define the Desktop Security Policy in a Rule Base. Rules can be assigned to specific user groups, to customize a policy for different needs.
    Important - Before you begin to create a Desktop Security Policy, you must enable the Policy Server feature on the gateway.
    Endpoint Security VPN downloads the first policy from the gateway. It looks for and downloads new policies every time it connects or on re-authentication.
    When Endpoint Security VPN makes a VPN connection, it connects to the gateway and downloads its policy. Endpoint Security VPN enforces the policy: accepts, encrypts, or drops connections, depending on their source, destination, and service.
    So (I think) what happened is when I logged on to my employer's network, it re-configured my firewall to limit my network connections resulting in the above-described problems.
    Logging out did not change anything.  Uninstalling the VPN client did not change anything. It looks like the changes "enforced" by the VPN client are persistent, and can only be changed "manually."
    I doubt I will be able to prevail upon my employer to change its desktop policy.  So I'm ready to bail on using the VPN client, but how do I reverse the changes my employer's "desktop policy" made?
    The System Preferences Firewall options seem kind of high level.  I would note that iTunes looks like it is open to all connections.
    Thoughts?  HELP.

    It is not something I have played with.. but I would turn off the Mac's firewall and see if that fixed the problem.. the firewall of the Mac is helping your security.. but the main security is actually the NAT router in the TC. It is extremely difficult to break NAT routing.. It is effectively a firewall itself. So turning off the firewall in the Mac is not a biggie. The reason I want you to do that even if just for a few minutes.. and perhaps turn it off and reboot the computer to make sure the rules have stopped being applied.. is to see if the firewall is actually the culprit.
    What I am reading from what you have posted is the vpn client itself is the software blocking connections. And I doubt a third party software would change rules to the internal firewall.. but i am guessing.
    Once you have tested it.. if the firewall off fixes it.. then you will need to hunt around.. perhaps in a TM backup for the actual file that is altered that contains the rules.. I have not looked.. and don't use firewall on the end client anyway as I have a firewall rated router.
    If the firewall off does not fix the problem.. which is what I suspect. Did you use the uninstall software correctly and did it give any error messages??
    Go to the activity monitor and check all the running processes.. anything there that is named after the vpn.. try to quit. See if you can stop the process.. If the issue is major.. and the process won't quit see if the Checkpoint support can help or google their knowledge base for info on how to get back to normal operations.

  • Changing Hyperlink Settings via JS

    Hi there,
    i have a bunch of InDesign CS3 documents where i need to change the zoom-setting for all hyperlinks.
    how can i access the zoom-setting of all selected hyperlinks via javascript and set it to "fit to window".
    i hope someone can point me to the right direction here.
    cheers,
    christian

    yes, sorry. here we go:
    doc = app.activeDocument;
    var hyLinkPAGE=doc.hyperlinkPageDestinations;
    for(var p=0; p < hyLinkPAGE.length; p++)
         hyLinkPAGE[p].viewSetting=HyperlinkDestinationPageSetting.FIT_WINDOW;

  • Configure DNS & Search Domains in TCP/IP Settings via Terminal?

    HI Folks,
    I've been having a long standing battle trying to find out what is wrong with my machine, it's been running like a dog for a while and having recently added 2 new Macs to our network i recall that there was a setting missing - namely within the TCP/IP settings for the Built In Ethernet, the DNS Servers and Search Domains are not configured on my machine, but are on the new ones i've added (mine was my new foray into Macs so i maybe set it up wrong!)
    However the main problem occurs when i try to edit the settings for the above from within System Preferences -> Network, i get a spinning beach ball of doom and have to Force Quit. Yet oddly i can access the setting fine when i am at home and not connected to the AD of the Windows Server Environment... which makes me think the events could be linked.... i thought it may have been Parallels and it's NAT settings, but given that all works perfectly at home i'm not so sure. Hence, as a process of elimination i'd like to try and get the correct settings for Search Domain etc to see if it helps, before i flatten the machine and reinstall Tiger completely!
    The main issues i've been having with the machine can be found here:
    http://discussions.apple.com/thread.jspa?threadID=854009&tstart=0
    Thanks
    Scott
    MBP 2.0Ghz, 2Gb RAM, 100Gb 7200rpm   Mac OS X (10.4.9)   Parallels

    Hi Phil (and others!)
    I opted for the easy choice, which did work... and have added the Search Domain info etc whilst at home... and touch wood today things seem to be working better, i can easily access network preferences etc and have had no hanging apps as yet...
    I did try and use different locations for work and home, but sadly i ended up with a spinning beach ball of doom when i tried to change the location at work, so it was a slightly pointless exercise!!!
    The lookupd -configuration printout is as follows (no idea if it's useful in any way!)
    ConfigSource: default
    LookupOrder: Cache NI DS
    MaxIdleServers: 4
    MaxIdleThreads: 2
    MaxThreads: 64
    TimeToLive: 43200
    Timeout: 30
    ValidateCache: YES
    ValidationLatency: 15
    configname: Global Configuration
    LookupOrder: Cache FF DNS NI DS
    configname: Host Configuration
    LookupOrder: Cache FF NI DS
    configname: Service Configuration
    LookupOrder: Cache FF NI DS
    configname: Protocol Configuration
    LookupOrder: Cache FF NI DS
    configname: Rpc Configuration
    TimeToLive: 60
    ValidateCache: NO
    configname: Group Configuration
    TimeToLive: 300
    ValidateCache: NO
    configname: Initgroup Configuration
    LookupOrder: Cache FF DNS NI DS
    configname: Network Configuration
    Thanks
    Scott
    MBP 2.0Ghz, 2Gb RAM, 100Gb 7200rpm   Mac OS X (10.4.9)   Parallels

  • My itunes library when using my phone is in Japanese, and the currency is set to yen. I have changed the settings via the flag at the bottom of itunes on windows but its only changed on my windows itunes.

    The currency on my itunes store when using my iPhone is in Japanese yen, the menu is in Japanese too. I have changed the country using the flag at the bottom of itunes for windows, I have synced my iphone and restarted it, but it still has not changed. I also cannot set up a payment method for itunes as it keeps asking for japanese bank details? Help!

    The currency on my itunes store when using my iPhone is in Japanese yen, the menu is in Japanese too. I have changed the country using the flag at the bottom of itunes for windows, I have synced my iphone and restarted it, but it still has not changed. I also cannot set up a payment method for itunes as it keeps asking for japanese bank details? Help!

  • Changing DNS settings via /usr/libexec/changeDirData.pl

    I am trying to correct a DNS problem on my Snow leopard server install and was instructed by an Apple engineer to use /usr/libexec/changeDirData.pl to globally search and replace on the system to change all instances of the DNS name.
    I checkout the man page for changedirdata and it seems pretty straightforward. However, when I try to run it I get the following error:
    sudo sh /usr/libexec/changeDirData.pl -i -s <MY SERVER IP> -u diradmin -o <OLD DNS NAME> -n <NEW DNS NAME>
    /usr/libexec/changeDirData.pl: line 3: use: command not found
    /usr/libexec/changeDirData.pl: line 4: use: command not found
    /usr/libexec/changeDirData.pl: line 5: syntax error near unexpected token `('
    /usr/libexec/changeDirData.pl: line 5: `use Net::LDAP::Constant qw( LDAPCONTROLPAGED );'
    Is there something up with Perl here?

    it's a perl file, and should be an executable.
    get rid of the sh
    run it like this
    sudo /usr/libexec/changeDirData.pl -i -s <MY SERVER IP> -u diradmin -o <OLD DNS NAME> -n <NEW DNS NAME>

  • Change language settings via URL in CRM ISA B2C

    Hi experts,
    I have external product catalog, and I use the following format of URL to access ISA B2C in English:
    http://<server>:<port>/b2c/display/(xcm=B2C_B2CCRMSTANDARD&cpgsize=5&layout=5.1-6_1_56_58_5_8_2&uiarea=2&carea=4B6F49098864241BE10000000ABF0F17&cpgnum=1)/.do?rf=y
    Now I need to access the Spanish version of the site. I know I can do it via this URL, http://<server>:<port>/b2c/b2c/init.do?language=es. However, instead of going to init.do, is there a way to use the format of the first URL and in Spanish flavor? It does not work if I simply append &language=es after the first URL.
    Appreciated if giving out step by step guide. Thanks.

    Hi Andreas,
    try to run the report "rscpinst" in tx se38. Just "ADD" the entry "DE - German" to this table.
    The first entry in this table should be the default value for the Logon Screen.
    Hope it works!
    Regards,
    Christian

  • It's not letting me change the firewall settings.

    I have a odd problem. It's not letting me change my firewall settings. The settings are locked by default, when I click on the little lock image in the bottom it does not prompt me for the password, it says "authenticating" for about 2 seconds, and then the "Click the lock to make changed" text appears again. I don't know what to do...

    I only have one account and I don't know how I could log into it more than once at the same time...
    My signature is not correct... I have the latest 10.6.1.
    Would it be possible to change the firewall settings in terminal?

Maybe you are looking for

  • Pre-n enabler seems to cause issues with lock up/beach ball

    I just received my new C2D MBP yesterday with 3G of RAM and all was peachy. I decided to install the $1.99 Pre-N enabler patch from Apple and it appears that I'm not alone in having that cause system lock ups and beach balls from ****. I unfortunatel

  • How do I print a list of files inside a portfolio?

    I have been using Acrobat to make portfolios of pdf's for a short while.  I would like to print a list of the files inside the portfolio.  tx

  • Third-Party Remittance in ERP

    We are in the process of upgrading from 4.6c to ERP2005.  When running third-party posting we get the following error: No entry in table T52EK for key /401 F or Q Table T52EK contains the symbolic accounts and what type of account they are.  /401 sho

  • Package for print

    Hi all, I'm creating a javascript that makes a package for print in Indesign CS5. All goes well, the package gets created, but afterwards the fonts in the package seems to be in use until I quit Indesign. Has anyone had this problem, or can anyone he

  • Advice:  collections or transactions

    Need some advice on how to handle this one: I have 3 tables Equipment table Fields: EquipID Type EquipSoftware Table Fields: ID EquipID SoftwareID Software Table SoftwareID Software On the page I want to have: Equipment Information on the top Then, o