Unix/Linux Go Back    


IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

Help with iptables

IP Networking


Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 03-12-2013
beerpong1 beerpong1 is offline
Registered User
 
Join Date: Jul 2011
Last Activity: 12 March 2013, 10:00 PM EDT
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Help with iptables

photo networkUnix or Linux Image

i was wondering if someone can help me with iptables for the router photo attached

On Router:
1.i need to ssh from blue to red:
my answer:
iptables -A INPUT -s 10.2.0.0 -p tcp --dport 22 -j accept
iptables -A output -s 10.2.0.0 -p tcp --sport 22 -j accept

2.i need to http from blue to red (required for patching)?

3. i need to Allow pings both ways
my answer"
iptables -A input -p icmp --icmp-type 8 -m state --stae new,established -j accept
iptables -A input -p icmp --icmp-type 0 -m state --stae new,established -j accept
iptables -A output -p icmp --icmp-type 8 -m state --stae new,established -j accept
iptables -A output -p icmp --icmp-type 0 -m state --stae new,established -j accept

4.then Allow nothing else
my answer:
iptables -A INPUT -j DROP

5.ssh must only listen on blue network interface (in: /etc/ssh/sshd_config)?

Last edited by beerpong1; 03-12-2013 at 10:00 PM..
Sponsored Links
    #2  
Old Unix and Linux 03-13-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 17 February 2015, 1:56 PM EST
Location: Southern NJ, USA (Nord)
Posts: 4,671
Thanks: 8
Thanked 586 Times in 559 Posts
Which host(s) gets iptables?
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Unix or Linux Image More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help with iptables samnyc UNIX for Dummies Questions & Answers 2 01-14-2013 04:04 PM
help with iptables samnyc UNIX for Dummies Questions & Answers 5 10-12-2011 12:36 PM
iptables changes rina5392 IP Networking 0 01-07-2010 07:49 PM
Iptables proactiveaditya IP Networking 1 10-02-2009 02:02 AM
IPtables Jody UNIX for Dummies Questions & Answers 3 05-31-2003 08:08 PM



All times are GMT -4. The time now is 05:47 PM.