SUDO COMMANDS / PORT FORWARDING EXAMPLE TERMINAL

COMMANDS ARE LISTED IN BOLD 

server:~ administrator$ sudo ipfw list
01000 allow ip from any to any via lo0
01010 deny ip from any to 127.0.0.0/8
01020 deny ip from 224.0.0.0/4 to any in
01030 deny tcp from any to 224.0.0.0/4 in
12300 allow tcp from any to any established
12301 allow tcp from any to any out
12302 allow tcp from any to any dst-port 22
12302 allow udp from any to any dst-port 22
12303 allow udp from any to any dst-port 68
12304 allow udp from any to any out keep-state
12305 allow tcp from any to any dst-port 53 out keep-state
12305 allow udp from any to any dst-port 53 out keep-state
12306 allow udp from any to any in frag
12307 allow tcp from any to any dst-port 311
12308 allow tcp from any to any dst-port 625
12309 allow icmp from any to any icmptypes 8
12310 allow icmp from any to any icmptypes 0
12311 allow igmp from any to any
12312 allow esp from any to any
12313 allow gre from any to any
12314 allow tcp from any to any dst-port 1099,8043
12315 allow udp from any to any dst-port 1701
12316 allow tcp from any to any dst-port 1723
12317 allow tcp from any to any dst-port 3283,5900
12317 allow udp from any to any dst-port 3283,5900
12318 allow udp from any to any dst-port 4500
12319 allow udp from any to any dst-port 500
12320 allow tcp from any to any dst-port 80
12321 allow tcp from any to any dst-port 443
12322 allow tcp from any to any dst-port 6674
12322 allow udp from any to any dst-port 6674
12323 allow tcp from any to any dst-port 7113-7118
12323 allow udp from any to any dst-port 7113-7118
12324 allow tcp from any to any dst-port 6113-6117
12324 allow udp from any to any dst-port 6113-6117
12325 allow tcp from any to any dst-port 45631
12326 allow udp from any to any dst-port 192
12327 allow tcp from any to any dst-port 50003
12327 allow udp from any to any dst-port 50003
12328 allow tcp from any to any dst-port 5988,5989
12329 allow tcp from 14.31.1.0/24 to any dst-port 7113-7118
12329 allow udp from 14.31.1.0/24 to any dst-port 7113-7118
65534 deny ip from any to any

server:~ administrator$ sudo ipfw list
01000 allow ip from any to any via lo0
01010 deny ip from any to 127.0.0.0/8
01020 deny ip from 224.0.0.0/4 to any in
01030 deny tcp from any to 224.0.0.0/4 in
12300 allow tcp from any to any established
12301 allow tcp from any to any out
12302 allow tcp from any to any dst-port 22
12302 allow udp from any to any dst-port 22
12303 allow udp from any to any dst-port 68
12304 allow udp from any to any out keep-state
12305 allow tcp from any to any dst-port 53 out keep-state
12305 allow udp from any to any dst-port 53 out keep-state
12306 allow udp from any to any in frag
12307 allow tcp from any to any dst-port 311
12308 allow tcp from any to any dst-port 625
12309 allow icmp from any to any icmptypes 8
12310 allow icmp from any to any icmptypes 0
12311 allow igmp from any to any
12312 allow esp from any to any
12313 allow gre from any to any
12314 allow tcp from any to any dst-port 1099,8043
12315 allow udp from any to any dst-port 1701
12316 allow tcp from any to any dst-port 1723
12317 allow tcp from any to any dst-port 3283,5900
12317 allow udp from any to any dst-port 3283,5900
12318 allow udp from any to any dst-port 4500
12319 allow udp from any to any dst-port 500
12320 allow tcp from any to any dst-port 80
12321 allow tcp from any to any dst-port 443
12322 allow tcp from any to any dst-port 6674
12322 allow udp from any to any dst-port 6674
12323 allow tcp from any to any dst-port 7113-7118
12323 allow udp from any to any dst-port 7113-7118
12324 allow tcp from any to any dst-port 6113-6117
12324 allow udp from any to any dst-port 6113-6117
12325 allow tcp from any to any dst-port 45631
12326 allow udp from any to any dst-port 192
12327 allow tcp from any to any dst-port 50003
12327 allow udp from any to any dst-port 50003
12328 allow tcp from any to any dst-port 5988,5989
12329 allow tcp from 14.31.1.0/24 to any dst-port 7113-7118
12329 allow udp from 14.31.1.0/24 to any dst-port 7113-7118
65534 deny ip from any to any
65535 allow ip from any to any
server:~ administrator$ sudo ipfw add 12330 allow tcp from any to any dst-port6180-61880
Password:
ipfw: unrecognised option [-1] dst-port6180-61880
server:~ administrator$ sudo ipfw add 12330 allow tcp from any to any dst-port 6180-61880
12330 allow tcp from any to any dst-port 6180-61880
server:~ administrator$ sudo ipfw list
01000 allow ip from any to any via lo0
01010 deny ip from any to 127.0.0.0/8
01020 deny ip from 224.0.0.0/4 to any in
01030 deny tcp from any to 224.0.0.0/4 in
12300 allow tcp from any to any established
12301 allow tcp from any to any out
12302 allow tcp from any to any dst-port 22
12302 allow udp from any to any dst-port 22
12303 allow udp from any to any dst-port 68
12304 allow udp from any to any out keep-state
12305 allow tcp from any to any dst-port 53 out keep-state
12305 allow udp from any to any dst-port 53 out keep-state
12306 allow udp from any to any in frag
12307 allow tcp from any to any dst-port 311
12308 allow tcp from any to any dst-port 625
12309 allow icmp from any to any icmptypes 8
12310 allow icmp from any to any icmptypes 0
12311 allow igmp from any to any
12312 allow esp from any to any
12313 allow gre from any to any
12314 allow tcp from any to any dst-port 1099,8043
12315 allow udp from any to any dst-port 1701
12316 allow tcp from any to any dst-port 1723
12317 allow tcp from any to any dst-port 3283,5900
12317 allow udp from any to any dst-port 3283,5900
12318 allow udp from any to any dst-port 4500
12319 allow udp from any to any dst-port 500
12320 allow tcp from any to any dst-port 80
12321 allow tcp from any to any dst-port 443
12322 allow tcp from any to any dst-port 6674
12322 allow udp from any to any dst-port 6674
12323 allow tcp from any to any dst-port 7113-7118
12323 allow udp from any to any dst-port 7113-7118
12324 allow tcp from any to any dst-port 6113-6117
12324 allow udp from any to any dst-port 6113-6117
12325 allow tcp from any to any dst-port 45631
12326 allow udp from any to any dst-port 192
12327 allow tcp from any to any dst-port 50003
12327 allow udp from any to any dst-port 50003
12328 allow tcp from any to any dst-port 5988,5989
12329 allow tcp from 14.31.1.0/24 to any dst-port 7113-7118
12329 allow udp from 14.31.1.0/24 to any dst-port 7113-7118
12330 allow tcp from any to any dst-port 6180-61880
65534 deny ip from any to any
65535 allow ip from any to any
server:~ administrator$ sudo ipfw delete 12330

server:~ administrator$ sudo ipfw list
01000 allow ip from any to any via lo0
01010 deny ip from any to 127.0.0.0/8
01020 deny ip from 224.0.0.0/4 to any in
01030 deny tcp from any to 224.0.0.0/4 in
12300 allow tcp from any to any established
12301 allow tcp from any to any out
12302 allow tcp from any to any dst-port 22
12302 allow udp from any to any dst-port 22
12303 allow udp from any to any dst-port 68
12304 allow udp from any to any out keep-state
12305 allow tcp from any to any dst-port 53 out keep-state
12305 allow udp from any to any dst-port 53 out keep-state
12306 allow udp from any to any in frag
12307 allow tcp from any to any dst-port 311
12308 allow tcp from any to any dst-port 625
12309 allow icmp from any to any icmptypes 8
12310 allow icmp from any to any icmptypes 0
12311 allow igmp from any to any
12312 allow esp from any to any
12313 allow gre from any to any
12314 allow tcp from any to any dst-port 1099,8043
12315 allow udp from any to any dst-port 1701
12316 allow tcp from any to any dst-port 1723
12317 allow tcp from any to any dst-port 3283,5900
12317 allow udp from any to any dst-port 3283,5900
12318 allow udp from any to any dst-port 4500
12319 allow udp from any to any dst-port 500
12320 allow tcp from any to any dst-port 80
12321 allow tcp from any to any dst-port 443
12322 allow tcp from any to any dst-port 6674
12322 allow udp from any to any dst-port 6674
12323 allow tcp from any to any dst-port 7113-7118
12323 allow udp from any to any dst-port 7113-7118
12324 allow tcp from any to any dst-port 6113-6117
12324 allow udp from any to any dst-port 6113-6117
12325 allow tcp from any to any dst-port 45631
12326 allow udp from any to any dst-port 192
12327 allow tcp from any to any dst-port 50003
12327 allow udp from any to any dst-port 50003
12328 allow tcp from any to any dst-port 5988,5989
12329 allow tcp from 14.31.1.0/24 to any dst-port 7113-7118
12329 allow udp from 14.31.1.0/24 to any dst-port 7113-7118
65534 deny ip from any to any
65535 allow ip from any to any
server:~ administrator$ sudo ipfw add 12330 allow tcp from any to any dst-port 6180-61880
12330 allow tcp from any to any dst-port 6180-61880

server:~ administrator$ sudo ipfw list
01000 allow ip from any to any via lo0
01010 deny ip from any to 127.0.0.0/8
01020 deny ip from 224.0.0.0/4 to any in
01030 deny tcp from any to 224.0.0.0/4 in
12300 allow tcp from any to any established
12301 allow tcp from any to any out
12302 allow tcp from any to any dst-port 22
12302 allow udp from any to any dst-port 22
12303 allow udp from any to any dst-port 68
12304 allow udp from any to any out keep-state
12305 allow tcp from any to any dst-port 53 out keep-state
12305 allow udp from any to any dst-port 53 out keep-state
12306 allow udp from any to any in frag
12307 allow tcp from any to any dst-port 311
12308 allow tcp from any to any dst-port 625
12309 allow icmp from any to any icmptypes 8
12310 allow icmp from any to any icmptypes 0
12311 allow igmp from any to any
12312 allow esp from any to any
12313 allow gre from any to any
12314 allow tcp from any to any dst-port 1099,8043
12315 allow udp from any to any dst-port 1701
12316 allow tcp from any to any dst-port 1723
12317 allow tcp from any to any dst-port 3283,5900
12317 allow udp from any to any dst-port 3283,5900
12318 allow udp from any to any dst-port 4500
12319 allow udp from any to any dst-port 500
12320 allow tcp from any to any dst-port 80
12321 allow tcp from any to any dst-port 443
12322 allow tcp from any to any dst-port 6674
12322 allow udp from any to any dst-port 6674
12323 allow tcp from any to any dst-port 7113-7118
12323 allow udp from any to any dst-port 7113-7118
12324 allow tcp from any to any dst-port 6113-6117
12324 allow udp from any to any dst-port 6113-6117
12325 allow tcp from any to any dst-port 45631
12326 allow udp from any to any dst-port 192
12327 allow tcp from any to any dst-port 50003
12327 allow udp from any to any dst-port 50003
12328 allow tcp from any to any dst-port 5988,5989
12329 allow tcp from 14.31.1.0/24 to any dst-port 7113-7118
12329 allow udp from 14.31.1.0/24 to any dst-port 7113-7118
12330 allow tcp from any to any dst-port 6180-61880
65534 deny ip from any to any
65535 allow ip from any to any
server:~ administrator$ sudo ipfw delete 12330
server:~ administrator$ sudo ipfw add 12330 allow tcp from any to any dst-port 6180-6188
12330 allow ip from any to any proto tcp dst-port 6180-6188
server:~ administrator$ 

  • 0 Uživatelům pomohlo
Byla tato odpověď nápomocná?

Related Articles

SCREEN SHOT SHORTCUTS

ShortcutsCommand-Shift-3: Take a screenshot of the screen, and save it as a file on the...

STARTING IN SAFE MODE

To start up into Safe Mode (to Safe Boot), do this:Be sure your Mac is shut down.Press the power...

SUDO COMMANDS TO SET FIREWALL CONFIGURATIONS / PORT FORWARDING

PORT CHECKINGIf you enter the command sudo ipfw list you will see the active...

GOOD REFERENCE PAGES MAC

http://apple.stackexchange.comhttp://www.informit.comhttp://developernotes.com

WINDOWS 8 ON A MAC

HOW TO INSTALL WINDOWS 8 ON A MAC By Matt Smith — April 14, 2013 14...