Quote:
Originally posted by Obie
#For outgoing appending
iptables -A OUTPUT -p all -source Local_PC_IP -d Remote_PC-IP -j ACCEPT
#For incoming appending
iptables -A INPUT -p all -source Local_PC_IP -d Remote_PC-IP -j ACCEPT
|
I think the second one should be as
Code:
iptables -A INPUT -p all -source Remote_PC-IP -d Local_PC-IP -j ACCEPT
To allow other hosts packets in INPUT chain by setting --source as it's IP. And i think the rules below should also work..
Code:
iptables -I INPUT --source OTHER_ONE -j ACCEPT
iptables -I OUTPUT --destination OTHER_ONE -j ACCEPT
Easier to maintain
