[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

portforwarding - lokkit



hi,


from external_net i would be forwarded to phoebe:22 pc1=psyche:2222 --> pc2=phoebe:22

how must i create this rules with iptables??
?? -t nat, DNAT, SNAT, PREROUTING, FORWARDING -i eth1 -o eth0 ??

scenario:
pc1                                 -->  pc2
xdsl:eth1  lan:eth0         -->  lan:eth0
0.0.0.0    192.168.10.1:2222  -->    192.168.10.2:22



how can i add this rules into the lokkit-generated-rules in /etc/sysconfig/iptables?

#lokkit
   high - ok
#cd /etc/sysconfig
#vi iptables
#mv iptables iptables-lokkithigh

#iptables ??? ??? ??? ??? ??? ??? ??? ???

#iptables-save /etc/sysconfig/iptables-lokkithigh-portfw22
#iptables-save /etc/sysconfig/iptables

#service iptables restart


from external_net #ssh -p2222 user-phoebe my dns2go com #ssh -p22 user-psyche my dns2go com


could this work?


thanks.


-- shrek-m





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]