Whic is my Nic

shetu

Weaksauce
Joined
Jul 23, 2010
Messages
120
Hi
I buy centos vps. There are few nic (as0t0, as0t1, as0t2, as0t3, lo, tun0, vent0, vent0:0). I need to know correct nic for replacing eth0. I want to port forward from lan pc via VPS vpn. This is my command for port forward. Is this ok?

Code:
iptables -t nat -A PREROUTING -i eth0 -p udp -m udp --dport 10000:20000 -j DNAT --to-destination 10.8.0.17
iptables -t nat -A PREROUTING -i eth0 -p udp -m udp --dport 5000:6000 -j DNAT --to-destination 10.8.0.17
iptables -t nat -A PREROUTING -i eth0 -p udp -m udp --dport 4569 -j DNAT --to-destination 10.8.0.17
 
Back
Top