0

My VM has 2 network interfaces. eth0 is NAT and configured as DHCP Second adapter is eth1 and it is using static ip 10.0.0.254 (vmnet 19) Win10 is in the same vmnet and it's able to ping 10.0.0.254. that's his default gateway. The Win10 is unable to ping the internet

IP forwarding is enabled in the linux kernel I haven't set up any iptable rule with PREROUTING and POSTROUTING. I tried to read a few websites but I have got lost... Can someone please help so any traffic coming from Win10 will be sent to the remnux and then it will be forwarded correctly? Thanks!

30/11/19:

sudo iptables -v -x -n -L

Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
    pkts      bytes target     prot opt in     out     source               destination         

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
    pkts      bytes target     prot opt in     out     source               destination         

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
    pkts      bytes target     prot opt in     out     source               destination         

-------------------------
remnux@remnux:~$ sudo iptables -v -x -n -L 
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
    pkts      bytes target     prot opt in     out     source               destination         

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
    pkts      bytes target     prot opt in     out     source               destination         

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
    pkts      bytes target     prot opt in     out     source               destination         
remnux@remnux:~$ sudo iptables -t nat -v -x -n -L
Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes)
    pkts      bytes target     prot opt in     out     source               destination         

Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
    pkts      bytes target     prot opt in     out     source               destination         

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
    pkts      bytes target     prot opt in     out     source               destination         

Chain POSTROUTING (policy ACCEPT 0 packets, 0 bytes)
    pkts      bytes target     prot opt in     out     source               destination   

eth0 in remnux is NAT
eth0 in remnux is VMnet19 (10.0.0.254/24)
Win10 has only one interface - VMnet19. His default gateway is 10.0.0.254. When the Win10 needs to access the internet, it should forward it to remnux (which is connected to the internet using eth0)

  • You haven't explained what "remnux" is. We will need to see your entire tiptsbles rule set, including the nat table. Do sudo iptables -v -x -n -L and sudo iptables -t nat -v -x -n -L and edit your your question to include the results. Is eth0 your way to internet? is it bridged? which version of Ubuntu? – Doug Smythies Nov 30 '19 at 2:12
  • Hi, REMnux is a free Linux toolkit for assisting malware analysts with reverse-engineering malicious software. Ubuntu-based. I have edited my original message because there is a character limit (really annoying) In Srv 2016 it was really easy to config. youtube.com/watch?v=pcMb4zSsrVU Thank you! – Veg Nov 30 '19 at 15:07
  • Oh. I misread your question, I thought you had already some iptables rules, Do you mean eth1 in remnux is VMnet19 (10.0.0.254/24)? see here. – Doug Smythies Nov 30 '19 at 16:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.