problems with masquerade

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

 



Hi,

i try to route several protocols through a vpnc connection to my university. 
Masquerade works fine for the outgoing packets. But all packets from the 
university which should be redirected to my PC are delivered localy on my 
server.

My config shows like:

UNI............ --- Internet --- my Router ---Server (eth0). --- PC
Cisco VPN ==================== vpnc (vpnlink)


iptables -A PREROUTING -t mangle -p tcp -d [UNI.UNI.0.0]/16 --dport 22 -j MARK 
--set-mark 3

iptabeles -A POSTROUTING -t nat -d [UNI.UNI.0.0]/255.255.0.0 -o vpnlink -j 
MASQUERADE

iptables -A FORWARD -i vpnlink -s !  [UNI.UNI.0.0]/16 -j DROP

/sbin/ip rule add from  [UNI.UNI.0.0]/16 to [UNI.UNI.0.0] /16 table 103 pref 
32762
/sbin/ip rule add fwmark 3 table 103 pref 32753
/sbin/ip route add default dev vpnlink table 103

Did i something wrong or/and have can i fix it?

thanks


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux