Find the answer to your Linux question:
Results 1 to 2 of 2
... so I've forwarded incoming connections on port 25 to my virtual machine with the following commands: sudo iptables -t nat -A PREROUTING -p tcp -i eth0 -d 10.1.1.3 --dport ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Banned
    Join Date
    Mar 2011
    Posts
    8

    connections in virtual machine getting dropped


    ... so I've forwarded incoming connections on port 25 to my virtual machine with the following commands:

    sudo iptables -t nat -A PREROUTING -p tcp -i eth0 -d 10.1.1.3 --dport 25 -j DNAT --to 192.168.56.101:25

    sudo iptables -A FORWARD -p tcp -i eth0 -d 192.168.56.101 --dport 25 -j ACCEPT
    The strange thing is the connections coming through in the virtual machine seem to be getting dropped. A port scan from the internet says the port is closed, but it is not the case as I can see the connection coming through.
    As you've probably worked out, I am running a mail server. When I send myself test mail, the connections from the senders mail server also gets dropped.

    Anyone ever had this experience before or has a clue whats going on?

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,672
    How did you have your VM network setup?
    Virtual network or Shared device?

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •