Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How do I create a rule Shorewall for bridging port 443 from eth0 to eth1?

share|improve this question

migrated from stackoverflow.com Feb 27 '11 at 9:14

This question came from our site for professional and enthusiast programmers.

add comment

1 Answer

Assuming that your interfaces file has

#ZONE   INTERFACE
inside    eth0     ...
outside   eth1     ...

i.e. eth0 is called 'inside' and eth1 is called 'outside'

You could write a rule like

#ACTION         SOURCE          DEST            PROTO   DEST    SOURCE   ...
#                                                       PORT
ACCEPT          inside          outside         tcp     443

This would allow TCP traffic on port 443 to flow freely from hosts on eth0 to hosts on eth1, but not backwards.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.